Bug 50607

Summary: Remove stale include of Document.h in V8DOMWrapper.h
Product: WebKit Reporter: Charles Reis <creis>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, japhet, vitalyr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Description Charles Reis 2010-12-06 18:10:25 PST
An include of Document.h was added to V8DOMWrapper.h in http://trac.webkit.org/changeset/47921, but it appears this is no longer needed since the convertNodeToV8Object function that was using it is gone.  (Same for the include of V8DOMMap.h.)

I'd like to remove the stale include(s) to avoid a circular include chain introduced by the combination of Nate Chapin's change to Document.h (http://trac.webkit.org/changeset/73392) and my pending patch to NavigationAction.h (https://bugs.webkit.org/attachment.cgi?id=75044&action=review).

Specifically, after Nate includes DocumentLoader from Document and I include HistoryItem from NavigationAction, it's possible for V8DOMWrapper to transitively include V8Proxy.  That leads to this compile error:

  CXX(target) out/Debug/obj.target/webcore_bindings/gen/webkit/bindings/V8DerivedSources8.o
In file included from third_party/WebKit/WebCore/bindings/v8/ScriptValue.h:41,
                 from third_party/WebKit/WebCore/bindings/v8/SerializedScriptValue.h:34,
                 from third_party/WebKit/WebCore/history/HistoryItem.h:31,
                 from third_party/WebKit/WebCore/loader/NavigationAction.h:34,
                 from third_party/WebKit/WebCore/loader/DocumentLoader.h:34,
                 from third_party/WebKit/WebCore/dom/Document.h:36,
                 from third_party/WebKit/WebCore/bindings/v8/V8DOMWrapper.h:34,
                 from out/Debug/obj/gen/webkit/bindings/V8BeforeProcessEvent.h:25,
                 from out/Debug/obj/gen/webcore/bindings/V8BeforeProcessEvent.cpp:22,
                 from out/Debug/obj/gen/webkit/bindings/V8DerivedSources3.cpp:31:
third_party/WebKit/WebCore/bindings/v8/V8Proxy.h: In static member function 'static v8::Handle<v8::Value> WebCore::V8Proxy::constructDOMObject(const v8::Arguments&, WebCore::WrapperTypeInfo*)':
third_party/WebKit/WebCore/bindings/v8/V8Proxy.h:362: error: 'V8DOMWrapper' has not been declared
third_party/WebKit/WebCore/bindings/v8/V8Proxy.h:364: error: 'V8DOMWrapper' has not been declared
Comment 1 Charles Reis 2010-12-06 18:18:38 PST
Created attachment 75771 [details]
Patch
Comment 2 WebKit Review Bot 2010-12-06 18:21:59 PST
Attachment 75771 [details] did not pass style-queue:

Failed to run "[u'git', u'reset', u'--hard', u'HEAD']" exit_code: 128
error: Could not write new index file.
fatal: Could not reset index file to revision 'HEAD'.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 WebKit Review Bot 2010-12-06 19:23:07 PST
Attachment 75771 [details] did not pass style-queue:

Failed to run "[u'git', u'reset', u'--hard', u'HEAD']" exit_code: 128
error: Could not write new index file.
fatal: Could not reset index file to revision 'HEAD'.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 WebKit Review Bot 2010-12-07 08:23:10 PST
Attachment 75771 [details] did not pass style-queue:

Failed to run "[u'git', u'reset', u'--hard', u'refs/remotes/trunk']" exit_code: 128
error: Could not write new index file.
fatal: Could not reset index file to revision 'refs/remotes/trunk'.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Eric Seidel (no email) 2010-12-14 01:25:39 PST
Comment on attachment 75771 [details]
Patch

I'm surprised Charlie isn't a committer yet.
Comment 6 WebKit Commit Bot 2010-12-14 03:43:19 PST
The commit-queue encountered the following flaky tests while processing attachment 75771 [details]:

animations/combo-transform-translate+scale.html bug 50958 (authors: cmarrin@apple.com, darin@apple.com, ojan@chromium.org, and pol@apple.com)
animations/play-state-suspend.html bug 50959 (author: cmarrin@apple.com)
The commit-queue is continuing to process your patch.
Comment 7 WebKit Commit Bot 2010-12-14 04:03:32 PST
Comment on attachment 75771 [details]
Patch

Clearing flags on attachment: 75771

Committed r74014: <http://trac.webkit.org/changeset/74014>
Comment 8 WebKit Commit Bot 2010-12-14 04:03:37 PST
All reviewed patches have been landed.  Closing bug.