Bug 110030 - Cut down the number of source files that depend on Clipboard.h
Summary: Cut down the number of source files that depend on Clipboard.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-16 14:39 PST by Darin Adler
Modified: 2013-03-02 21:57 PST (History)
10 users (show)

See Also:


Attachments
Patch (16.25 KB, patch)
2013-02-16 15:37 PST, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (16.37 KB, patch)
2013-02-16 16:38 PST, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (17.85 KB, patch)
2013-02-18 18:04 PST, Darin Adler
rniwa: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2013-02-16 14:39:49 PST
Cut down the number of source files that depend on Clipboard.h
Comment 1 Darin Adler 2013-02-16 15:37:24 PST
Created attachment 188733 [details]
Patch
Comment 2 Early Warning System Bot 2013-02-16 15:45:57 PST
Comment on attachment 188733 [details]
Patch

Attachment 188733 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/16587715
Comment 3 Geoffrey Garen 2013-02-16 15:49:59 PST
In file included from /home/webkit/WebKit/Source/WebCore/inspector/InspectorInputAgent.cpp:38:0:
/home/webkit/WebKit/Source/WebCore/page/EventHandler.h:467:12: error: 'Document' was not declared in this scope
/home/webkit/WebKit/Source/WebCore/page/EventHandler.h:467:20: error: template argument 1 is invalid
Comment 4 Darin Adler 2013-02-16 16:12:45 PST
So it seems that on my local Mac and on the GTK EWS bot the patch builds, but on Qt, Chromium-Android, and others there is a missing forward declaration of Document in EventHandler.h.
Comment 5 Darin Adler 2013-02-16 16:38:13 PST
Created attachment 188740 [details]
Patch
Comment 6 Darin Adler 2013-02-16 16:45:37 PST
Letting EWS chew on this before formally putting a version up for review this time.
Comment 7 Darin Adler 2013-02-16 16:50:36 PST
Comment on attachment 188740 [details]
Patch

Qt liked it, so putting up for review again.
Comment 8 Build Bot 2013-02-16 20:41:54 PST
Comment on attachment 188740 [details]
Patch

Attachment 188740 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://queues.webkit.org/results/16586806

New failing tests:
media/video-controls-captions-trackmenu.html
Comment 9 Peter Beverloo (cr-android ews) 2013-02-16 21:33:36 PST
Comment on attachment 188740 [details]
Patch

Attachment 188740 [details] did not pass cr-android-ews (chromium-android):
Output: http://queues.webkit.org/results/16598706
Comment 10 WebKit Review Bot 2013-02-17 20:19:24 PST
Comment on attachment 188740 [details]
Patch

Attachment 188740 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/16587974
Comment 11 Ryosuke Niwa 2013-02-17 20:26:14 PST
(In reply to comment #10)
> (From update of attachment 188740 [details])
> Attachment 188740 [details] did not pass chromium-ews (chromium-xvfb):
> Output: http://queues.webkit.org/results/16587974

Last 500 characters of output:
ource/WebKit/chromium/src/SharedWorkerRepository.cpp: In member function 'virtual void WebCore::SharedWorkerScriptLoader::didReceiveResponse(long unsigned int, const WebCore::ResourceResponse&)':
../../Source/WebKit/chromium/src/SharedWorkerRepository.cpp:179: error: invalid use of incomplete type 'const struct WebCore::ResourceResponse'
../../Source/WebCore/loader/PolicyChecker.h:46: error: forward declaration of 'const struct WebCore::ResourceResponse'
ninja: build stopped: subcommand failed.

It's somewhat mind blowing that SharedWorkerRepository.cpp depends on ResourceResponse, and it was including Clipboard.h :(
Comment 12 WebKit Review Bot 2013-02-17 21:18:30 PST
Attachment 188740 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/dom/ClipboardEvent.cpp', u'Source/WebCore/dom/ClipboardEvent.h', u'Source/WebCore/dom/DataTransferItem.h', u'Source/WebCore/dom/MouseEvent.cpp', u'Source/WebCore/dom/MouseEvent.h', u'Source/WebCore/dom/WheelEvent.cpp', u'Source/WebCore/dom/WheelEvent.h', u'Source/WebCore/editing/Editor.cpp', u'Source/WebCore/inspector/InspectorDebuggerAgent.cpp', u'Source/WebCore/inspector/InspectorFrontendHost.cpp', u'Source/WebCore/inspector/NetworkResourcesData.cpp', u'Source/WebCore/loader/PingLoader.cpp', u'Source/WebCore/page/DragController.cpp', u'Source/WebCore/page/EventHandler.h', u'Source/WebKit/mac/ChangeLog', u'Source/WebKit/mac/WebView/WebPDFView.mm']" exit_code: 1
Source/WebCore/dom/ClipboardEvent.h:31:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 WebKit Review Bot 2013-02-17 22:13:36 PST
Comment on attachment 188740 [details]
Patch

Attachment 188740 [details] did not pass cr-linux-debug-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/16602807
Comment 14 Darin Adler 2013-02-18 18:04:53 PST
Created attachment 188971 [details]
Patch
Comment 15 WebKit Review Bot 2013-02-18 18:08:02 PST
Attachment 188971 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/dom/ClipboardEvent.cpp', u'Source/WebCore/dom/ClipboardEvent.h', u'Source/WebCore/dom/DataTransferItem.h', u'Source/WebCore/dom/MouseEvent.cpp', u'Source/WebCore/dom/MouseEvent.h', u'Source/WebCore/dom/WheelEvent.cpp', u'Source/WebCore/dom/WheelEvent.h', u'Source/WebCore/editing/Editor.cpp', u'Source/WebCore/inspector/InspectorDebuggerAgent.cpp', u'Source/WebCore/inspector/InspectorFrontendHost.cpp', u'Source/WebCore/inspector/NetworkResourcesData.cpp', u'Source/WebCore/loader/PingLoader.cpp', u'Source/WebCore/page/DragController.cpp', u'Source/WebCore/page/EventHandler.h', u'Source/WebKit/chromium/ChangeLog', u'Source/WebKit/chromium/src/SharedWorkerRepository.cpp', u'Source/WebKit/mac/ChangeLog', u'Source/WebKit/mac/WebView/WebPDFView.mm']" exit_code: 1
Source/WebCore/dom/ClipboardEvent.h:31:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 16 Build Bot 2013-02-19 23:15:31 PST
Comment on attachment 188971 [details]
Patch

Attachment 188971 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/16654073

New failing tests:
http/tests/inspector/appcache/appcache-manifest-with-non-existing-file.html
Comment 17 Darin Adler 2013-03-02 21:57:48 PST
Committed r144553: <http://trac.webkit.org/changeset/144553>