Reduce amount of rebuilding when touching networking headers
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 07:26:10 +0000 (07:26 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 07:26:10 +0000 (07:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111035

Reviewed by Eric Seidel.

Source/WebCore:

This uses a number of common unsurprising techniques. One interesting observation
is that including CachedResource related headers is very expensive. We can usually
get away with their Client counterparts, and with CachedResourceHandle.

* page/Frame.cpp:
* page/Frame.h:
Don't include FrameLoader, greatly reducing include graph for most non-loader files.
This required making Frame::init() non-inline - I'm not sure why it ever was.

* loader/FrameLoader.cpp:
* loader/FrameLoader.h:
Even though FrameLoader is logically on loading side of WebCore, it's included in
too many places. Not including PolicyChecker.h and ResourceHandle.h was among the
largest wins. As a future improvement, we should probably convert other members
to OwnPtrs.

* css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
definition of a class it holds, but default construction does not.

* loader/CrossOriginAccessControl.h: This file among others only needs ResourceHandleTypes.h,
not ResourceHandle.h. This header is semi-recent, so not all include sites were updated.

* loader/cache/CachedFont.h:
* loader/cache/CachedFontClient.h: Added.
* loader/cache/CachedRawResource.h:
* loader/cache/CachedRawResourceClient.h: Added.
* loader/cache/CachedSVGDocument.h:
* loader/cache/CachedSVGDocumentClient.h: Added.
These types were defining client types in the same headers, making it impossible
to avoid including networking headers through CachedResource. Moved clients into
separate files.

* plugins/PluginStream.h:
* plugins/PluginStreamClient.h: Added.
Similar situation here.

* loader/cache/CachedResourceHandle.cpp:
* loader/cache/CachedResourceHandle.h:
Moved functions that need to know about CachedResource to .cpp file. This is another
huge win. Added a destructor, so that CachedResource woudn't be needed in all files
that include CachedResourceHandle.

* loader/cache/CachedSVGDocumentReference.cpp: Added.
* loader/cache/CachedSVGDocumentReference.h:
Moved constructor and virtual function implementations to a .cpp file - they need
not inlining, and this lets us avoid including CachedSVGDocument.h in the header.

* platform/graphics/filters/FilterOperation.cpp:
* platform/graphics/filters/FilterOperation.h:
Avoid including CachedSVGDocumentReference.h. This is not such a big win now that
CachedSVGDocumentReference.h itself is smaller, but FilterOperation is so clearly
rendering code that it seems best to cut any ties with resources and loading.
Added a virtual destrutor in .cpp file, because inline destructors in polymorphic
classes are generally harmful (due to code bloat).

* plugins/PluginRequest.h: Added.
* plugins/PluginView.h:
Moved PluginRequest into a separate file, it was out of place in a view hierarchy
class file.

* rendering/RenderImageResource.cpp:
* rendering/RenderImageResource.h:
Moved definitions of virtual functions to a .cpp file. Thre is no win from having
them inline, and now we don't need CachedImage.h in the header.

* rendering/style/StyleCustomFilterProgram.cpp: Added.
* rendering/style/StyleCustomFilterProgram.h:
Ditto.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Modules/mediastream/RTCPeerConnection.cpp:
* Modules/notifications/Notification.cpp:
* Target.pri:
* WebCore.exp.in:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/ScriptControllerBase.cpp:
* bindings/js/JSNodeCustom.cpp:
* bindings/js/ScriptController.cpp:
* bindings/js/ScriptSourceCode.h:
* bindings/objc/DOM.mm:
* bindings/v8/ScriptController.cpp:
* bindings/v8/V8DOMWindowShell.cpp:
* bindings/v8/custom/V8DOMWindowCustom.cpp:
* css/CSSFontFaceSource.h:
* css/CSSFontSelector.cpp:
* css/WebKitCSSSVGDocumentValue.cpp:
* css/WebKitCSSSVGDocumentValue.h:
* dom/Clipboard.cpp:
* dom/ContainerNode.cpp:
* dom/DOMImplementation.cpp:
* dom/PendingScript.h:
* dom/ScriptElement.cpp:
* dom/ScriptElement.h:
* history/CachedFrame.cpp:
* html/DOMURL.cpp:
* html/HTMLAnchorElement.cpp:
* html/HTMLAppletElement.cpp:
* html/HTMLElement.cpp:
* html/HTMLEmbedElement.cpp:
* html/HTMLFrameSetElement.cpp:
* html/HTMLHtmlElement.cpp:
* html/HTMLImageElement.cpp:
* html/HTMLObjectElement.cpp:
* html/HTMLPlugInElement.cpp:
* html/ImageDocument.cpp:
* html/ImageInputType.cpp:
* html/MediaDocument.cpp:
* html/PluginDocument.cpp:
* html/canvas/WebGLRenderingContext.cpp:
* html/parser/HTMLConstructionSite.cpp:
* html/parser/HTMLParserOptions.cpp:
* html/parser/HTMLScriptRunner.h:
* html/parser/XSSAuditor.cpp:
* html/parser/XSSAuditorDelegate.cpp:
* inspector/InspectorDebuggerAgent.cpp:
* inspector/InspectorFileSystemAgent.cpp:
* inspector/InspectorFrontendHost.cpp:
* inspector/InspectorInstrumentation.h:
* inspector/InspectorPageAgent.cpp:
* inspector/NetworkResourcesData.cpp:
* inspector/NetworkResourcesData.h:
* loader/CookieJar.cpp:
* loader/CrossOriginAccessControl.cpp:
* loader/CrossOriginPreflightResultCache.h:
* loader/DocumentThreadableLoader.h:
* loader/ImageLoader.cpp:
* loader/ImageLoader.h:
* loader/LinkLoader.h:
* loader/MainResourceLoader.cpp:
* loader/MainResourceLoader.h:
* loader/MixedContentChecker.cpp:
* loader/PingLoader.cpp:
* loader/PolicyChecker.h:
* loader/ProgressTracker.cpp:
* loader/SubframeLoader.cpp:
* loader/SubresourceLoader.cpp:
* loader/TextTrackLoader.cpp:
* loader/TextTrackLoader.h:
* loader/ThreadableLoader.h:
* loader/appcache/ApplicationCacheGroup.cpp:
* loader/appcache/ApplicationCacheGroup.h:
* loader/appcache/ApplicationCacheHost.cpp:
* loader/archive/cf/LegacyWebArchive.cpp:
* loader/cache/CachedFont.cpp:
* loader/cache/CachedImage.cpp:
* loader/cache/CachedRawResource.cpp:
* loader/cache/CachedResource.cpp:
* loader/cache/CachedStyleSheetClient.h:
* loader/cache/MemoryCache.cpp:
* loader/cache/MemoryCache.h:
* loader/chromium/CachedRawResourceChromium.cpp:
* loader/icon/IconController.cpp:
* loader/icon/IconLoader.h:
* loader/mac/ResourceLoaderMac.mm:
* page/DOMWindowExtension.cpp:
* page/DragController.cpp:
* page/PerformanceNavigation.cpp:
* page/PerformanceTiming.cpp:
* page/PointerLockController.cpp:
* page/Settings.cpp:
* page/animation/CSSPropertyAnimation.cpp:
* platform/chromium/PasteboardChromium.cpp:
* platform/efl/ErrorsEfl.cpp:
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
* platform/gtk/ErrorsGtk.cpp:
* platform/gtk/PasteboardGtk.cpp:
* platform/gtk/PasteboardHelper.h:
* platform/mac/ClipboardMac.h:
* platform/mac/ClipboardMac.mm:
* platform/mac/HTMLConverter.mm:
* platform/mac/PasteboardMac.mm:
* platform/network/AuthenticationChallengeBase.cpp:
* platform/network/cf/CookieJarCFNet.cpp:
* platform/network/cf/ResourceRequestCFNet.cpp:
* platform/network/mac/CookieStorageMac.mm:
* platform/qt/PasteboardQt.cpp:
* plugins/DOMMimeType.cpp:
* plugins/PluginView.cpp:
* rendering/HitTestResult.cpp:
* rendering/InlineFlowBox.cpp:
* rendering/RenderBox.cpp:
* rendering/RenderEmbeddedObject.cpp:
* rendering/RenderImage.cpp:
* rendering/RenderImageResourceStyleImage.cpp:
* rendering/RenderLayer.cpp:
* rendering/RenderLayerBacking.cpp:
* rendering/RenderLayerFilterInfo.h:
* rendering/RenderListItem.cpp:
* rendering/RenderListMarker.cpp:
* rendering/RenderSnapshottedPlugIn.cpp:
* rendering/RenderTableCol.cpp:
* rendering/RenderTableRow.cpp:
* rendering/RenderTableSection.cpp:
* rendering/style/StyleCachedShader.h:
* svg/SVGFEImageElement.h:
* svg/SVGFontFaceUriElement.h:
* svg/SVGImageLoader.cpp:
* svg/SVGUseElement.cpp:
* svg/SVGUseElement.h:
* svg/graphics/SVGImageCache.cpp:
* testing/MockPagePopupDriver.cpp:
* xml/XSLStyleSheet.h:
* xml/XSLTProcessorLibxslt.cpp:
* xml/parser/XMLDocumentParser.cpp:
* xml/parser/XMLDocumentParser.h:
* xml/parser/XMLDocumentParserLibxml2.cpp:
Many self-evident changes - removing unnecessary header includes, adding smaller
more local ones that are now necessary.

Source/WebKit/chromium:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* src/ApplicationCacheHost.cpp:
* src/AssociatedURLLoader.cpp:
* src/EditorClientImpl.cpp:
* src/SharedWorkerRepository.cpp:
* src/WebDataSourceImpl.cpp:
* src/WebFrameImpl.h:
* src/WebNode.cpp:
* src/WebSharedWorkerImpl.cpp:
* tests/FrameLoaderClientImplTest.cpp:

Source/WebKit/efl:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
* ewk/ewk_frame.cpp:

Source/WebKit/gtk:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* webkit/webkitwebpolicydecision.cpp:

Source/WebKit/mac:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* DOM/WebDOMOperations.mm:
* Misc/WebNSPasteboardExtras.mm:
* WebCoreSupport/WebFrameNetworkingContext.mm:
* WebView/WebRenderLayer.mm:
* WebView/WebRenderNode.mm:

Source/WebKit/qt:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* WebCoreSupport/NotificationPresenterClientQt.cpp:
* WebCoreSupport/QWebPageAdapter.cpp:

Source/WebKit2:

Adding includes that are now necessary because WebCore headers don't have them
any more.

* NetworkProcess/HostRecord.h:
* NetworkProcess/NetworkResourceLoadScheduler.h:
* NetworkProcess/NetworkResourceLoader.h:
* Shared/WebRenderLayer.cpp:
* Shared/WebRenderObject.cpp:
* WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
* WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
* WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
* WebProcess/Plugins/PDF/PDFPlugin.mm:
* WebProcess/Plugins/PluginView.cpp:
* WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
* WebProcess/WebCoreSupport/WebEditorClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
* WebProcess/WebPage/mac/WebPageMac.mm:
* WebProcess/WebProcess.cpp:
* WebProcess/soup/WebProcessSoup.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144422 268f45cc-cd09-0410-ab3c-d52691b4dbfc

215 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
Source/WebCore/Modules/notifications/Notification.cpp
Source/WebCore/Target.pri
Source/WebCore/WebCore.exp.in
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/ScriptControllerBase.cpp
Source/WebCore/bindings/js/JSNodeCustom.cpp
Source/WebCore/bindings/js/ScriptController.cpp
Source/WebCore/bindings/js/ScriptSourceCode.h
Source/WebCore/bindings/objc/DOM.mm
Source/WebCore/bindings/v8/ScriptController.cpp
Source/WebCore/bindings/v8/V8DOMWindowShell.cpp
Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
Source/WebCore/css/CSSCrossfadeValue.h
Source/WebCore/css/CSSFontFaceSource.h
Source/WebCore/css/CSSFontSelector.cpp
Source/WebCore/css/WebKitCSSSVGDocumentValue.cpp
Source/WebCore/css/WebKitCSSSVGDocumentValue.h
Source/WebCore/dom/Clipboard.cpp
Source/WebCore/dom/ContainerNode.cpp
Source/WebCore/dom/DOMImplementation.cpp
Source/WebCore/dom/PendingScript.h
Source/WebCore/dom/ScriptElement.cpp
Source/WebCore/dom/ScriptElement.h
Source/WebCore/history/CachedFrame.cpp
Source/WebCore/html/DOMURL.cpp
Source/WebCore/html/HTMLAnchorElement.cpp
Source/WebCore/html/HTMLAppletElement.cpp
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/HTMLEmbedElement.cpp
Source/WebCore/html/HTMLFrameSetElement.cpp
Source/WebCore/html/HTMLHtmlElement.cpp
Source/WebCore/html/HTMLImageElement.cpp
Source/WebCore/html/HTMLObjectElement.cpp
Source/WebCore/html/HTMLPlugInElement.cpp
Source/WebCore/html/ImageDocument.cpp
Source/WebCore/html/ImageInputType.cpp
Source/WebCore/html/MediaDocument.cpp
Source/WebCore/html/PluginDocument.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/parser/HTMLConstructionSite.cpp
Source/WebCore/html/parser/HTMLParserOptions.cpp
Source/WebCore/html/parser/HTMLScriptRunner.h
Source/WebCore/html/parser/XSSAuditor.cpp
Source/WebCore/html/parser/XSSAuditorDelegate.cpp
Source/WebCore/inspector/InspectorDebuggerAgent.cpp
Source/WebCore/inspector/InspectorFileSystemAgent.cpp
Source/WebCore/inspector/InspectorFrontendHost.cpp
Source/WebCore/inspector/InspectorInstrumentation.h
Source/WebCore/inspector/InspectorPageAgent.cpp
Source/WebCore/inspector/NetworkResourcesData.cpp
Source/WebCore/inspector/NetworkResourcesData.h
Source/WebCore/loader/CookieJar.cpp
Source/WebCore/loader/CrossOriginAccessControl.cpp
Source/WebCore/loader/CrossOriginAccessControl.h
Source/WebCore/loader/CrossOriginPreflightResultCache.h
Source/WebCore/loader/DocumentThreadableLoader.h
Source/WebCore/loader/FrameLoader.cpp
Source/WebCore/loader/FrameLoader.h
Source/WebCore/loader/ImageLoader.cpp
Source/WebCore/loader/ImageLoader.h
Source/WebCore/loader/LinkLoader.h
Source/WebCore/loader/MainResourceLoader.cpp
Source/WebCore/loader/MainResourceLoader.h
Source/WebCore/loader/MixedContentChecker.cpp
Source/WebCore/loader/PingLoader.cpp
Source/WebCore/loader/PolicyChecker.h
Source/WebCore/loader/ProgressTracker.cpp
Source/WebCore/loader/SubframeLoader.cpp
Source/WebCore/loader/SubresourceLoader.cpp
Source/WebCore/loader/TextTrackLoader.cpp
Source/WebCore/loader/TextTrackLoader.h
Source/WebCore/loader/ThreadableLoader.h
Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp
Source/WebCore/loader/appcache/ApplicationCacheGroup.h
Source/WebCore/loader/appcache/ApplicationCacheHost.cpp
Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
Source/WebCore/loader/cache/CachedFont.cpp
Source/WebCore/loader/cache/CachedFont.h
Source/WebCore/loader/cache/CachedFontClient.h [new file with mode: 0644]
Source/WebCore/loader/cache/CachedImage.cpp
Source/WebCore/loader/cache/CachedRawResource.cpp
Source/WebCore/loader/cache/CachedRawResource.h
Source/WebCore/loader/cache/CachedRawResourceClient.h [new file with mode: 0644]
Source/WebCore/loader/cache/CachedResource.cpp
Source/WebCore/loader/cache/CachedResourceHandle.cpp
Source/WebCore/loader/cache/CachedResourceHandle.h
Source/WebCore/loader/cache/CachedSVGDocument.h
Source/WebCore/loader/cache/CachedSVGDocumentClient.h [new file with mode: 0644]
Source/WebCore/loader/cache/CachedSVGDocumentReference.cpp [new file with mode: 0644]
Source/WebCore/loader/cache/CachedSVGDocumentReference.h
Source/WebCore/loader/cache/CachedStyleSheetClient.h
Source/WebCore/loader/cache/MemoryCache.cpp
Source/WebCore/loader/cache/MemoryCache.h
Source/WebCore/loader/chromium/CachedRawResourceChromium.cpp
Source/WebCore/loader/icon/IconController.cpp
Source/WebCore/loader/icon/IconLoader.h
Source/WebCore/loader/mac/ResourceLoaderMac.mm
Source/WebCore/page/DOMWindowExtension.cpp
Source/WebCore/page/DragController.cpp
Source/WebCore/page/Frame.cpp
Source/WebCore/page/Frame.h
Source/WebCore/page/PerformanceNavigation.cpp
Source/WebCore/page/PerformanceTiming.cpp
Source/WebCore/page/PointerLockController.cpp
Source/WebCore/page/Settings.cpp
Source/WebCore/page/animation/CSSPropertyAnimation.cpp
Source/WebCore/platform/chromium/PasteboardChromium.cpp
Source/WebCore/platform/efl/ErrorsEfl.cpp
Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h
Source/WebCore/platform/graphics/filters/FilterOperation.cpp
Source/WebCore/platform/graphics/filters/FilterOperation.h
Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
Source/WebCore/platform/gtk/ErrorsGtk.cpp
Source/WebCore/platform/gtk/PasteboardGtk.cpp
Source/WebCore/platform/gtk/PasteboardHelper.h
Source/WebCore/platform/mac/ClipboardMac.h
Source/WebCore/platform/mac/ClipboardMac.mm
Source/WebCore/platform/mac/HTMLConverter.mm
Source/WebCore/platform/mac/PasteboardMac.mm
Source/WebCore/platform/network/AuthenticationChallengeBase.cpp
Source/WebCore/platform/network/cf/CookieJarCFNet.cpp
Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp
Source/WebCore/platform/network/mac/CookieStorageMac.mm
Source/WebCore/platform/qt/PasteboardQt.cpp
Source/WebCore/plugins/DOMMimeType.cpp
Source/WebCore/plugins/PluginRequest.h [new file with mode: 0644]
Source/WebCore/plugins/PluginStream.h
Source/WebCore/plugins/PluginStreamClient.h [new file with mode: 0644]
Source/WebCore/plugins/PluginView.cpp
Source/WebCore/plugins/PluginView.h
Source/WebCore/rendering/HitTestResult.cpp
Source/WebCore/rendering/InlineFlowBox.cpp
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderEmbeddedObject.cpp
Source/WebCore/rendering/RenderImage.cpp
Source/WebCore/rendering/RenderImageResource.cpp
Source/WebCore/rendering/RenderImageResource.h
Source/WebCore/rendering/RenderImageResourceStyleImage.cpp
Source/WebCore/rendering/RenderLayer.cpp
Source/WebCore/rendering/RenderLayerBacking.cpp
Source/WebCore/rendering/RenderLayerFilterInfo.h
Source/WebCore/rendering/RenderListItem.cpp
Source/WebCore/rendering/RenderListMarker.cpp
Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
Source/WebCore/rendering/RenderTableCol.cpp
Source/WebCore/rendering/RenderTableRow.cpp
Source/WebCore/rendering/RenderTableSection.cpp
Source/WebCore/rendering/style/StyleCachedShader.h
Source/WebCore/rendering/style/StyleCustomFilterProgram.cpp [new file with mode: 0644]
Source/WebCore/rendering/style/StyleCustomFilterProgram.h
Source/WebCore/svg/SVGFEImageElement.h
Source/WebCore/svg/SVGFontFaceUriElement.h
Source/WebCore/svg/SVGImageLoader.cpp
Source/WebCore/svg/SVGUseElement.cpp
Source/WebCore/svg/SVGUseElement.h
Source/WebCore/svg/graphics/SVGImageCache.cpp
Source/WebCore/testing/MockPagePopupDriver.cpp
Source/WebCore/xml/XSLStyleSheet.h
Source/WebCore/xml/XSLTProcessorLibxslt.cpp
Source/WebCore/xml/parser/XMLDocumentParser.cpp
Source/WebCore/xml/parser/XMLDocumentParser.h
Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/ApplicationCacheHost.cpp
Source/WebKit/chromium/src/AssociatedURLLoader.cpp
Source/WebKit/chromium/src/EditorClientImpl.cpp
Source/WebKit/chromium/src/SharedWorkerRepository.cpp
Source/WebKit/chromium/src/WebDataSourceImpl.cpp
Source/WebKit/chromium/src/WebFrameImpl.h
Source/WebKit/chromium/src/WebNode.cpp
Source/WebKit/chromium/src/WebSharedWorkerImpl.cpp
Source/WebKit/chromium/tests/FrameLoaderClientImplTest.cpp
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
Source/WebKit/efl/ewk/ewk_frame.cpp
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/webkit/webkitwebpolicydecision.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/DOM/WebDOMOperations.mm
Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
Source/WebKit/mac/WebCoreSupport/WebFrameNetworkingContext.mm
Source/WebKit/mac/WebView/WebRenderLayer.mm
Source/WebKit/mac/WebView/WebRenderNode.mm
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/HostRecord.h
Source/WebKit2/NetworkProcess/NetworkResourceLoadScheduler.h
Source/WebKit2/NetworkProcess/NetworkResourceLoader.h
Source/WebKit2/Shared/WebRenderLayer.cpp
Source/WebKit2/Shared/WebRenderObject.cpp
Source/WebKit2/WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp
Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm
Source/WebKit2/WebProcess/Plugins/PluginView.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebContextMenuClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm
Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm
Source/WebKit2/WebProcess/WebProcess.cpp
Source/WebKit2/WebProcess/soup/WebProcessSoup.cpp

index f670cf0ee9d2c91cb0f4c5022e7190579794957f..f2c0ff28153b1f583b75bd652d0e8855c3641b03 100644 (file)
@@ -1733,6 +1733,7 @@ set(WebCore_SOURCES
     loader/cache/CachedScript.cpp
     loader/cache/CachedShader.cpp
     loader/cache/CachedSVGDocument.cpp
+    loader/cache/CachedSVGDocumentReference.cpp
     loader/cache/CachedTextTrack.cpp
     loader/cache/CachedXSLStyleSheet.cpp
     loader/cache/MemoryCache.cpp
@@ -2255,6 +2256,7 @@ set(WebCore_SOURCES
     rendering/style/StyleBoxData.cpp
     rendering/style/StyleCachedImage.cpp
     rendering/style/StyleCachedImageSet.cpp
+    rendering/style/StyleCustomFilterProgram.cpp
     rendering/style/StyleDeprecatedFlexibleBoxData.cpp
     rendering/style/StyleFilterData.cpp
     rendering/style/StyleFlexibleBoxData.cpp
index 558b4f17b2f92654039006b9237d8bb1c60950ca..6437dd97c58bd19e856349da4a5422bba6cdf4c8 100644 (file)
@@ -1,3 +1,226 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        This uses a number of common unsurprising techniques. One interesting observation
+        is that including CachedResource related headers is very expensive. We can usually
+        get away with their Client counterparts, and with CachedResourceHandle.
+
+        * page/Frame.cpp:
+        * page/Frame.h:
+        Don't include FrameLoader, greatly reducing include graph for most non-loader files.
+        This required making Frame::init() non-inline - I'm not sure why it ever was.
+
+        * loader/FrameLoader.cpp:
+        * loader/FrameLoader.h:
+        Even though FrameLoader is logically on loading side of WebCore, it's included in
+        too many places. Not including PolicyChecker.h and ResourceHandle.h was among the
+        largest wins. As a future improvement, we should probably convert other members
+        to OwnPtrs.
+
+        * css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
+        definition of a class it holds, but default construction does not.
+
+        * loader/CrossOriginAccessControl.h: This file among others only needs ResourceHandleTypes.h,
+        not ResourceHandle.h. This header is semi-recent, so not all include sites were updated.
+
+        * loader/cache/CachedFont.h:
+        * loader/cache/CachedFontClient.h: Added.
+        * loader/cache/CachedRawResource.h:
+        * loader/cache/CachedRawResourceClient.h: Added.
+        * loader/cache/CachedSVGDocument.h:
+        * loader/cache/CachedSVGDocumentClient.h: Added.
+        These types were defining client types in the same headers, making it impossible
+        to avoid including networking headers through CachedResource. Moved clients into
+        separate files.
+
+        * plugins/PluginStream.h:
+        * plugins/PluginStreamClient.h: Added.
+        Similar situation here.
+
+        * loader/cache/CachedResourceHandle.cpp:
+        * loader/cache/CachedResourceHandle.h:
+        Moved functions that need to know about CachedResource to .cpp file. This is another
+        huge win. Added a destructor, so that CachedResource woudn't be needed in all files
+        that include CachedResourceHandle.
+
+        * loader/cache/CachedSVGDocumentReference.cpp: Added.
+        * loader/cache/CachedSVGDocumentReference.h:
+        Moved constructor and virtual function implementations to a .cpp file - they need
+        not inlining, and this lets us avoid including CachedSVGDocument.h in the header.
+
+        * platform/graphics/filters/FilterOperation.cpp:
+        * platform/graphics/filters/FilterOperation.h:
+        Avoid including CachedSVGDocumentReference.h. This is not such a big win now that
+        CachedSVGDocumentReference.h itself is smaller, but FilterOperation is so clearly
+        rendering code that it seems best to cut any ties with resources and loading.
+        Added a virtual destrutor in .cpp file, because inline destructors in polymorphic
+        classes are generally harmful (due to code bloat).
+
+        * plugins/PluginRequest.h: Added.
+        * plugins/PluginView.h:
+        Moved PluginRequest into a separate file, it was out of place in a view hierarchy
+        class file.
+
+        * rendering/RenderImageResource.cpp:
+        * rendering/RenderImageResource.h:
+        Moved definitions of virtual functions to a .cpp file. Thre is no win from having
+        them inline, and now we don't need CachedImage.h in the header.
+
+        * rendering/style/StyleCustomFilterProgram.cpp: Added.
+        * rendering/style/StyleCustomFilterProgram.h:
+        Ditto.
+
+        * CMakeLists.txt:
+        * GNUmakefile.list.am:
+        * Modules/mediastream/RTCPeerConnection.cpp:
+        * Modules/notifications/Notification.cpp:
+        * Target.pri:
+        * WebCore.exp.in:
+        * WebCore.gypi:
+        * WebCore.vcproj/WebCore.vcproj:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/ScriptControllerBase.cpp:
+        * bindings/js/JSNodeCustom.cpp:
+        * bindings/js/ScriptController.cpp:
+        * bindings/js/ScriptSourceCode.h:
+        * bindings/objc/DOM.mm:
+        * bindings/v8/ScriptController.cpp:
+        * bindings/v8/V8DOMWindowShell.cpp:
+        * bindings/v8/custom/V8DOMWindowCustom.cpp:
+        * css/CSSFontFaceSource.h:
+        * css/CSSFontSelector.cpp:
+        * css/WebKitCSSSVGDocumentValue.cpp:
+        * css/WebKitCSSSVGDocumentValue.h:
+        * dom/Clipboard.cpp:
+        * dom/ContainerNode.cpp:
+        * dom/DOMImplementation.cpp:
+        * dom/PendingScript.h:
+        * dom/ScriptElement.cpp:
+        * dom/ScriptElement.h:
+        * history/CachedFrame.cpp:
+        * html/DOMURL.cpp:
+        * html/HTMLAnchorElement.cpp:
+        * html/HTMLAppletElement.cpp:
+        * html/HTMLElement.cpp:
+        * html/HTMLEmbedElement.cpp:
+        * html/HTMLFrameSetElement.cpp:
+        * html/HTMLHtmlElement.cpp:
+        * html/HTMLImageElement.cpp:
+        * html/HTMLObjectElement.cpp:
+        * html/HTMLPlugInElement.cpp:
+        * html/ImageDocument.cpp:
+        * html/ImageInputType.cpp:
+        * html/MediaDocument.cpp:
+        * html/PluginDocument.cpp:
+        * html/canvas/WebGLRenderingContext.cpp:
+        * html/parser/HTMLConstructionSite.cpp:
+        * html/parser/HTMLParserOptions.cpp:
+        * html/parser/HTMLScriptRunner.h:
+        * html/parser/XSSAuditor.cpp:
+        * html/parser/XSSAuditorDelegate.cpp:
+        * inspector/InspectorDebuggerAgent.cpp:
+        * inspector/InspectorFileSystemAgent.cpp:
+        * inspector/InspectorFrontendHost.cpp:
+        * inspector/InspectorInstrumentation.h:
+        * inspector/InspectorPageAgent.cpp:
+        * inspector/NetworkResourcesData.cpp:
+        * inspector/NetworkResourcesData.h:
+        * loader/CookieJar.cpp:
+        * loader/CrossOriginAccessControl.cpp:
+        * loader/CrossOriginPreflightResultCache.h:
+        * loader/DocumentThreadableLoader.h:
+        * loader/ImageLoader.cpp:
+        * loader/ImageLoader.h:
+        * loader/LinkLoader.h:
+        * loader/MainResourceLoader.cpp:
+        * loader/MainResourceLoader.h:
+        * loader/MixedContentChecker.cpp:
+        * loader/PingLoader.cpp:
+        * loader/PolicyChecker.h:
+        * loader/ProgressTracker.cpp:
+        * loader/SubframeLoader.cpp:
+        * loader/SubresourceLoader.cpp:
+        * loader/TextTrackLoader.cpp:
+        * loader/TextTrackLoader.h:
+        * loader/ThreadableLoader.h:
+        * loader/appcache/ApplicationCacheGroup.cpp:
+        * loader/appcache/ApplicationCacheGroup.h:
+        * loader/appcache/ApplicationCacheHost.cpp:
+        * loader/archive/cf/LegacyWebArchive.cpp:
+        * loader/cache/CachedFont.cpp:
+        * loader/cache/CachedImage.cpp:
+        * loader/cache/CachedRawResource.cpp:
+        * loader/cache/CachedResource.cpp:
+        * loader/cache/CachedStyleSheetClient.h:
+        * loader/cache/MemoryCache.cpp:
+        * loader/cache/MemoryCache.h:
+        * loader/chromium/CachedRawResourceChromium.cpp:
+        * loader/icon/IconController.cpp:
+        * loader/icon/IconLoader.h:
+        * loader/mac/ResourceLoaderMac.mm:
+        * page/DOMWindowExtension.cpp:
+        * page/DragController.cpp:
+        * page/PerformanceNavigation.cpp:
+        * page/PerformanceTiming.cpp:
+        * page/PointerLockController.cpp:
+        * page/Settings.cpp:
+        * page/animation/CSSPropertyAnimation.cpp:
+        * platform/chromium/PasteboardChromium.cpp:
+        * platform/efl/ErrorsEfl.cpp:
+        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
+        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
+        * platform/gtk/ErrorsGtk.cpp:
+        * platform/gtk/PasteboardGtk.cpp:
+        * platform/gtk/PasteboardHelper.h:
+        * platform/mac/ClipboardMac.h:
+        * platform/mac/ClipboardMac.mm:
+        * platform/mac/HTMLConverter.mm:
+        * platform/mac/PasteboardMac.mm:
+        * platform/network/AuthenticationChallengeBase.cpp:
+        * platform/network/cf/CookieJarCFNet.cpp:
+        * platform/network/cf/ResourceRequestCFNet.cpp:
+        * platform/network/mac/CookieStorageMac.mm:
+        * platform/qt/PasteboardQt.cpp:
+        * plugins/DOMMimeType.cpp:
+        * plugins/PluginView.cpp:
+        * rendering/HitTestResult.cpp:
+        * rendering/InlineFlowBox.cpp:
+        * rendering/RenderBox.cpp:
+        * rendering/RenderEmbeddedObject.cpp:
+        * rendering/RenderImage.cpp:
+        * rendering/RenderImageResourceStyleImage.cpp:
+        * rendering/RenderLayer.cpp:
+        * rendering/RenderLayerBacking.cpp:
+        * rendering/RenderLayerFilterInfo.h:
+        * rendering/RenderListItem.cpp:
+        * rendering/RenderListMarker.cpp:
+        * rendering/RenderSnapshottedPlugIn.cpp:
+        * rendering/RenderTableCol.cpp:
+        * rendering/RenderTableRow.cpp:
+        * rendering/RenderTableSection.cpp:
+        * rendering/style/StyleCachedShader.h:
+        * svg/SVGFEImageElement.h:
+        * svg/SVGFontFaceUriElement.h:
+        * svg/SVGImageLoader.cpp:
+        * svg/SVGUseElement.cpp:
+        * svg/SVGUseElement.h:
+        * svg/graphics/SVGImageCache.cpp:
+        * testing/MockPagePopupDriver.cpp:
+        * xml/XSLStyleSheet.h:
+        * xml/XSLTProcessorLibxslt.cpp:
+        * xml/parser/XMLDocumentParser.cpp:
+        * xml/parser/XMLDocumentParser.h:
+        * xml/parser/XMLDocumentParserLibxml2.cpp:
+        Many self-evident changes - removing unnecessary header includes, adding smaller
+        more local ones that are now necessary.
+
 2013-02-28  Koji Hara  <kojih@chromium.org>
 
         [V8] Added V8CustomIndexedGetter to IDLs that correspond to existing custom indexedPropertyGetter.
index 365c4ae60ee94a3942dcb8a4f837d5395668779c..2d6edb07e1d01805f01ac88aa020ee9dfa1c89a3 100644 (file)
@@ -3952,6 +3952,7 @@ webcore_sources += \
        Source/WebCore/loader/cache/CachedCSSStyleSheet.h \
        Source/WebCore/loader/cache/CachedFont.cpp \
        Source/WebCore/loader/cache/CachedFont.h \
+       Source/WebCore/loader/cache/CachedFontClient.h \
        Source/WebCore/loader/cache/CachedImage.cpp \
        Source/WebCore/loader/cache/CachedImage.h \
        Source/WebCore/loader/cache/CachedImageClient.h \
@@ -3959,6 +3960,7 @@ webcore_sources += \
        Source/WebCore/loader/cache/CachedResourceClientWalker.h \
        Source/WebCore/loader/cache/CachedRawResource.cpp \
        Source/WebCore/loader/cache/CachedRawResource.h \
+       Source/WebCore/loader/cache/CachedRawResourceClient.h \
        Source/WebCore/loader/cache/CachedResource.cpp \
        Source/WebCore/loader/cache/CachedResource.h \
        Source/WebCore/loader/cache/CachedResourceHandle.cpp \
@@ -4321,9 +4323,11 @@ webcore_sources += \
        Source/WebCore/plugins/PluginPackage.cpp \
        Source/WebCore/plugins/PluginPackage.h \
        Source/WebCore/plugins/PluginQuirkSet.h \
+       Source/WebCore/plugins/PluginRequest.h \
        Source/WebCore/plugins/PluginStrategy.h \
        Source/WebCore/plugins/PluginStream.cpp \
        Source/WebCore/plugins/PluginStream.h \
+       Source/WebCore/plugins/PluginStreamClient.h \
        Source/WebCore/plugins/PluginViewBase.h \
        Source/WebCore/plugins/PluginView.cpp \
        Source/WebCore/plugins/PluginView.h \
@@ -4624,6 +4628,7 @@ webcore_sources += \
        Source/WebCore/rendering/style/StyleCachedImageSet.h \
        Source/WebCore/rendering/style/StyleCachedShader.cpp \
        Source/WebCore/rendering/style/StyleCachedShader.h \
+       Source/WebCore/rendering/style/StyleCustomFilterProgram.cpp \
        Source/WebCore/rendering/style/StyleCustomFilterProgram.h \
        Source/WebCore/rendering/style/StyleDashboardRegion.h \
        Source/WebCore/rendering/style/StyleDeprecatedFlexibleBoxData.cpp \
@@ -4808,6 +4813,8 @@ webcore_svg_sources += \
        Source/WebCore/css/WebKitCSSSVGDocumentValue.h \
        Source/WebCore/loader/cache/CachedSVGDocument.cpp \
        Source/WebCore/loader/cache/CachedSVGDocument.h \
+       Source/WebCore/loader/cache/CachedSVGDocumentClient.h \
+       Source/WebCore/loader/cache/CachedSVGDocumentReference.cpp \
        Source/WebCore/loader/cache/CachedSVGDocumentReference.h \
        Source/WebCore/platform/graphics/SVGGlyph.cpp \
        Source/WebCore/platform/graphics/SVGGlyph.h \
index 1a590986c22abde4a26c734e28f250f9df35eb5e..c3cad57a38079be5e85f262c51544337fa691ff3 100644 (file)
@@ -39,6 +39,7 @@
 #include "Event.h"
 #include "ExceptionCode.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "MediaConstraintsImpl.h"
 #include "MediaStreamEvent.h"
index 52ec618d59de18a3d4354d281a597a6a4f40f037..b6d70e41ec920265a93fd17f6e65fb1b038884ce 100644 (file)
 #include "NotificationClient.h"
 #include "NotificationController.h"
 #include "NotificationPermissionCallback.h"
-#include "ResourceRequest.h"
-#include "ResourceResponse.h"
-#include "ThreadableLoader.h"
 #include "WindowFocusAllowedIndicator.h"
-#include "WorkerContext.h"
 
 namespace WebCore {
 
index da02700ffbeb49000affe3b6d4ff54975f4c8fd9..fcd8a43f6a85170d02ad6c8f90d2f8337e2031ef 100644 (file)
@@ -851,7 +851,7 @@ SOURCES += \
     loader/cache/CachedScript.cpp \
     loader/cache/CachedShader.cpp \
     loader/cache/CachedSVGDocument.cpp \
-    loader/cache/CachedSVGDocument.h \
+    loader/cache/CachedSVGDocumentReference.cpp \
     loader/cache/CachedXSLStyleSheet.cpp \
     loader/CookieJar.cpp \
     loader/CrossOriginAccessControl.cpp \
@@ -1276,6 +1276,7 @@ SOURCES += \
     rendering/style/StyleCachedImage.cpp \
     rendering/style/StyleCachedImageSet.cpp \
     rendering/style/StyleCachedShader.cpp \
+    rendering/style/StyleCustomFilterProgram.cpp \
     rendering/style/StyleDeprecatedFlexibleBoxData.cpp \
     rendering/style/StyleFilterData.cpp \
     rendering/style/StyleFlexibleBoxData.cpp \
@@ -2038,13 +2039,17 @@ HEADERS += \
     loader/archive/ArchiveResource.h \
     loader/cache/CachedCSSStyleSheet.h \
     loader/cache/CachedFont.h \
+    loader/cache/CachedFontClient.h \
     loader/cache/CachedImage.h \
+    loader/cache/CachedRawResource.h \
+    loader/cache/CachedRawResourceClient.h \
     loader/cache/CachedResourceClientWalker.h \
     loader/cache/CachedResource.h \
     loader/cache/CachedResourceHandle.h \
     loader/cache/CachedScript.h \
     loader/cache/CachedShader.h \
     loader/cache/CachedSVGDocument.h \
+    loader/cache/CachedSVGDocumentClient.h \
     loader/cache/CachedXSLStyleSheet.h \
     loader/cache/MemoryCache.h \
     loader/CookieJar.h \
@@ -2434,7 +2439,9 @@ HEADERS += \
     plugins/PlugInOriginHash.h \
     plugins/PluginMainThreadScheduler.h \
     plugins/PluginPackage.h \
+    plugins/PluginRequest.h \
     plugins/PluginStream.h \
+    plugins/PluginStreamClient.h \
     plugins/PluginView.h \
     plugins/win/PluginMessageThrottlerWin.h \
     rendering/AutoTableLayout.h \
index f6f2304b50937e747b904882d6d754c95833428f..3ff424ffbf8408736623622e0effe445709bc4d5 100644 (file)
@@ -842,6 +842,7 @@ __ZN7WebCore5Frame23visiblePositionForPointERKNS_8IntPointE
 __ZN7WebCore5Frame24searchForLabelsAboveCellEPNS_17RegularExpressionEPNS_20HTMLTableCellElementEPm
 __ZN7WebCore5Frame25setPageAndTextZoomFactorsEff
 __ZN7WebCore5Frame27resizePageRectsKeepingRatioERKNS_9FloatSizeES3_
+__ZN7WebCore5Frame4initEv
 __ZN7WebCore5Frame6createEPNS_4PageEPNS_21HTMLFrameOwnerElementEPNS_17FrameLoaderClientE
 __ZN7WebCore5Frame7setViewEN3WTF10PassRefPtrINS_9FrameViewEEE
 __ZN7WebCore5FrameD1Ev
index e80503b05feb947656e5fcb76bd8dffdd9f4ecbf..11130701469162b0f6932f864b832889a55148ca 100644 (file)
             'loader/cache/CachedCSSStyleSheet.h',
             'loader/cache/CachedFont.cpp',
             'loader/cache/CachedFont.h',
+            'loader/cache/CachedFontClient.h',
             'loader/cache/CachedImage.cpp',
             'loader/cache/CachedRawResource.cpp',
+            'loader/cache/CachedRawResource.h',
+            'loader/cache/CachedRawResourceClient.h',
             'loader/cache/CachedResource.cpp',
             'loader/cache/CachedResourceClientWalker.h',
             'loader/cache/CachedResourceHandle.cpp',
             'loader/cache/CachedShader.h',
             'loader/cache/CachedSVGDocument.cpp',
             'loader/cache/CachedSVGDocument.h',
+            'loader/cache/CachedSVGDocumentClient.h',
+            'loader/cache/CachedSVGDocumentReference.cpp',
             'loader/cache/CachedSVGDocumentReference.h',
             'loader/cache/CachedTextTrack.cpp',
             'loader/cache/CachedTextTrack.h',
             'plugins/PluginPackage.h',
             'plugins/PluginPackageNone.cpp',
             'plugins/PluginQuirkSet.h',
+            'plugins/PluginRequest.h',
             'plugins/PluginStream.cpp',
             'plugins/PluginStream.h',
+            'plugins/PluginStreamClient.h',
             'plugins/PluginView.cpp',
             'plugins/PluginView.h',
             'plugins/PluginViewNone.cpp',
             'rendering/style/StyleCachedShader.h',
             'rendering/style/StyleCachedShader.cpp',
             'rendering/style/StyleCustomFilterProgram.h',
+            'rendering/style/StyleCustomFilterProgram.cpp',
             'rendering/style/StyleDeprecatedFlexibleBoxData.cpp',
             'rendering/style/StyleFilterData.cpp',
             'rendering/style/StyleFlexibleBoxData.cpp',
index ec426439ca94f61dbe789d37d988e0df9735f72a..89232e19b10144974481e5614dabfe38200b4c18 100755 (executable)
                                        RelativePath="..\loader\cache\CachedFont.h"
                                        >
                                </File>
+                               <File
+                                       RelativePath="..\loader\cache\CachedFontClient.h"
+                                       >
+                               </File>
                                <File
                                        RelativePath="..\loader\cache\CachedImage.cpp"
                                        >
                                        RelativePath="..\loader\cache\CachedRawResource.h"
                                        >
                                </File>
+                               <File
+                                       RelativePath="..\loader\cache\CachedRawResourceClient.h"
+                                       >
+                               </File>
                                <File
                                        RelativePath="..\loader\cache\CachedResource.cpp"
                                        >
                                        RelativePath="..\loader\cache\CachedSVGDocument.h"
                                        >
                                </File>
+                               <File
+                                       RelativePath="..\loader\cache\CachedSVGDocumentClient.h"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath="..\loader\cache\CachedSVGDocumentReference.cpp"
+                                       >
+                               </File>
                                <File
                                        RelativePath="..\loader\cache\CachedSVGDocumentReference.h"
                                        >
                                        RelativePath="..\rendering\style\StyleCachedShader.h"
                                        >
                                </File>
+                               <File
+                                       RelativePath="..\rendering\style\StyleCustomFilterProgram.cpp"
+                                       >
+                               </File>
                                <File
                                        RelativePath="..\rendering\style\StyleCustomFilterProgram.h"
                                        >
                                RelativePath="..\plugins\PluginQuirkSet.h"
                                >
                        </File>
+                       <File
+                               RelativePath="..\plugins\PluginRequest.h"
+                               >
+                       </File>
                        <File
                                RelativePath="..\plugins\PluginStrategy.h"
                                >
                                RelativePath="..\plugins\PluginStream.h"
                                >
                        </File>
+                       <File
+                               RelativePath="..\plugins\PluginStreamClient.h"
+                               >
+                       </File>
                        <File
                                RelativePath="..\plugins\PluginView.cpp"
                                >
index 0745e721b7a77ab36cd34ca34bea11af06a12bc2..2d163b7aa53e69cb0f1e0b630c1ffae0cfdd2966 100644 (file)
     <ClCompile Include="..\loader\cache\CachedScript.cpp" />
     <ClCompile Include="..\loader\cache\CachedShader.cpp" />
     <ClCompile Include="..\loader\cache\CachedSVGDocument.cpp" />
+    <ClCompile Include="..\loader\cache\CachedSVGDocumentReference.cpp" />
     <ClCompile Include="..\loader\cache\CachedTextTrack.cpp" />
     <ClCompile Include="..\loader\cache\CachedXSLStyleSheet.cpp" />
     <ClCompile Include="..\loader\cache\MemoryCache.cpp" />
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\rendering\style\StyleCachedShader.cpp" />
+    <ClCompile Include="..\rendering\style\StyleCustomFilterProgram.cpp" />
     <ClCompile Include="..\rendering\style\StyleDeprecatedFlexibleBoxData.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
     <ClInclude Include="..\loader\archive\mhtml\MHTMLParser.h" />
     <ClInclude Include="..\loader\cache\CachedCSSStyleSheet.h" />
     <ClInclude Include="..\loader\cache\CachedFont.h" />
+    <ClInclude Include="..\loader\cache\CachedFontClient.h" />
     <ClInclude Include="..\loader\cache\CachedImage.h" />
     <ClInclude Include="..\loader\cache\CachedRawResource.h" />
+    <ClInclude Include="..\loader\cache\CachedRawResourceClient.h" />
     <ClInclude Include="..\loader\cache\CachedResource.h" />
     <ClInclude Include="..\loader\cache\CachedResourceClient.h" />
     <ClInclude Include="..\loader\cache\CachedResourceClientWalker.h" />
     <ClInclude Include="..\loader\cache\CachedShader.h" />
     <ClInclude Include="..\loader\cache\CachedStyleSheetClient.h" />
     <ClInclude Include="..\loader\cache\CachedSVGDocument.h" />
+    <ClInclude Include="..\loader\cache\CachedSVGDocumentClient.h" />
     <ClInclude Include="..\loader\cache\CachedSVGDocumentReference.h" />
     <ClInclude Include="..\loader\cache\CachedTextTrack.h" />
     <ClInclude Include="..\loader\cache\CachedXSLStyleSheet.h" />
     <ClInclude Include="..\plugins\PlugInOriginHash.h" />
     <ClInclude Include="..\plugins\PluginPackage.h" />
     <ClInclude Include="..\plugins\PluginQuirkSet.h" />
+    <ClInclude Include="..\plugins\PluginRequest.h" />
     <ClInclude Include="..\plugins\PluginStrategy.h" />
     <ClInclude Include="..\plugins\PluginStream.h" />
+    <ClInclude Include="..\plugins\PluginStreamClient.h" />
     <ClInclude Include="..\plugins\PluginView.h" />
     <ClInclude Include="..\plugins\win\PluginMessageThrottlerWin.h" />
     <ClInclude Include="..\svg\ColorDistance.h" />
index bfab91e73cecdd74cba99df3249c2071b01cab89..7b75b73cd05977602cf7e74965511e52c07cb6d3 100644 (file)
     <ClCompile Include="..\loader\cache\CachedSVGDocument.cpp">
       <Filter>loader\cache</Filter>
     </ClCompile>
+    <ClCompile Include="..\loader\cache\CachedSVGDocumentReference.cpp">
+      <Filter>loader\cache</Filter>
+    </ClCompile>
     <ClCompile Include="..\loader\cache\CachedTextTrack.cpp">
       <Filter>loader\cache</Filter>
     </ClCompile>
     <ClCompile Include="..\rendering\style\StyleCachedShader.cpp">
       <Filter>rendering\style</Filter>
     </ClCompile>
+    <ClCompile Include="..\rendering\style\StyleCustomFilterProgram.cpp">
+      <Filter>rendering\style</Filter>
+    </ClCompile>
     <ClCompile Include="..\rendering\style\StyleDeprecatedFlexibleBoxData.cpp">
       <Filter>rendering\style</Filter>
     </ClCompile>
     <ClInclude Include="..\loader\cache\CachedFont.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
+    <ClInclude Include="..\loader\cache\CachedFontClient.h">
+      <Filter>loader\cache</Filter>
+    </ClInclude>
     <ClInclude Include="..\loader\cache\CachedImage.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
     <ClInclude Include="..\loader\cache\CachedRawResource.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
+    <ClInclude Include="..\loader\cache\CachedRawResourceClient.h">
+      <Filter>loader\cache</Filter>
+    </ClInclude>
     <ClInclude Include="..\loader\cache\CachedResource.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
     <ClInclude Include="..\loader\cache\CachedSVGDocument.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
+    <ClInclude Include="..\loader\cache\CachedSVGDocumentClient.h">
+      <Filter>loader\cache</Filter>
+    </ClInclude>
     <ClInclude Include="..\loader\cache\CachedSVGDocumentReference.h">
       <Filter>loader\cache</Filter>
     </ClInclude>
     <ClInclude Include="..\plugins\PluginQuirkSet.h">
       <Filter>plugins</Filter>
     </ClInclude>
+    <ClInclude Include="..\plugins\PluginRequest.h">
+      <Filter>plugins</Filter>
+    </ClInclude>
     <ClInclude Include="..\plugins\PluginStrategy.h">
       <Filter>plugins</Filter>
     </ClInclude>
     <ClInclude Include="..\plugins\PluginStream.h">
       <Filter>plugins</Filter>
     </ClInclude>
+    <ClInclude Include="..\plugins\PluginStreamClient.h">
+      <Filter>plugins</Filter>
+    </ClInclude>
     <ClInclude Include="..\plugins\PluginView.h">
       <Filter>plugins</Filter>
     </ClInclude>
index d67d56969e00fb99a0ef2d1bd2bb001ed830a79a..c52e7ed6aae640569c712010faf1464bb122c791 100644 (file)
                E1ED8AC30CC49BE000BFC557 /* CSSPrimitiveValueMappings.h in Headers */ = {isa = PBXBuildFile; fileRef = E1ED8AC20CC49BE000BFC557 /* CSSPrimitiveValueMappings.h */; };
                E1F1E82F0C3C2BB9006DB391 /* XSLTExtensions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1F1E82D0C3C2BB9006DB391 /* XSLTExtensions.cpp */; };
                E1F1E8300C3C2BB9006DB391 /* XSLTExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = E1F1E82E0C3C2BB9006DB391 /* XSLTExtensions.h */; };
+               E1FC456E16DCB9010010F7B2 /* CachedSVGDocumentClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC456D16DCB9000010F7B2 /* CachedSVGDocumentClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               E1FC457016DCB9770010F7B2 /* CachedSVGDocumentReference.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FC456F16DCB9770010F7B2 /* CachedSVGDocumentReference.cpp */; };
+               E1FC457216DDF7250010F7B2 /* CachedRawResourceClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457116DDF7220010F7B2 /* CachedRawResourceClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               E1FC457416DDF7E60010F7B2 /* CachedFontClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457316DDF7E30010F7B2 /* CachedFontClient.h */; };
+               E1FC457616DE00100010F7B2 /* StyleCustomFilterProgram.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FC457516DE000F0010F7B2 /* StyleCustomFilterProgram.cpp */; };
+               E1FC457816DF0A750010F7B2 /* PluginView.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457716DF0A750010F7B2 /* PluginView.h */; };
+               E1FC457A16DF0ADA0010F7B2 /* PluginStream.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457916DF0AD90010F7B2 /* PluginStream.h */; };
+               E1FC457C16DF0AF10010F7B2 /* PluginStreamClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457B16DF0AF10010F7B2 /* PluginStreamClient.h */; };
+               E1FC457E16DF0B880010F7B2 /* PluginRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FC457D16DF0B880010F7B2 /* PluginRequest.h */; };
                E1FF57A30F01255B00891EBB /* ThreadGlobalData.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FF57A20F01255B00891EBB /* ThreadGlobalData.h */; settings = {ATTRIBUTES = (Private, ); }; };
                E1FF57A60F01256B00891EBB /* ThreadGlobalData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF57A50F01256B00891EBB /* ThreadGlobalData.cpp */; };
                E415F1690D9A165D0033CE97 /* DOMElementTimeControl.h in Headers */ = {isa = PBXBuildFile; fileRef = E415F1680D9A165D0033CE97 /* DOMElementTimeControl.h */; };
                E1ED8AC20CC49BE000BFC557 /* CSSPrimitiveValueMappings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSPrimitiveValueMappings.h; sourceTree = "<group>"; };
                E1F1E82D0C3C2BB9006DB391 /* XSLTExtensions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLTExtensions.cpp; sourceTree = "<group>"; };
                E1F1E82E0C3C2BB9006DB391 /* XSLTExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XSLTExtensions.h; sourceTree = "<group>"; };
+               E1FC456D16DCB9000010F7B2 /* CachedSVGDocumentClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedSVGDocumentClient.h; sourceTree = "<group>"; };
+               E1FC456F16DCB9770010F7B2 /* CachedSVGDocumentReference.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedSVGDocumentReference.cpp; sourceTree = "<group>"; };
+               E1FC457116DDF7220010F7B2 /* CachedRawResourceClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedRawResourceClient.h; sourceTree = "<group>"; };
+               E1FC457316DDF7E30010F7B2 /* CachedFontClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedFontClient.h; sourceTree = "<group>"; };
+               E1FC457516DE000F0010F7B2 /* StyleCustomFilterProgram.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StyleCustomFilterProgram.cpp; path = style/StyleCustomFilterProgram.cpp; sourceTree = "<group>"; };
+               E1FC457716DF0A750010F7B2 /* PluginView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginView.h; sourceTree = "<group>"; };
+               E1FC457916DF0AD90010F7B2 /* PluginStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginStream.h; sourceTree = "<group>"; };
+               E1FC457B16DF0AF10010F7B2 /* PluginStreamClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginStreamClient.h; sourceTree = "<group>"; };
+               E1FC457D16DF0B880010F7B2 /* PluginRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginRequest.h; sourceTree = "<group>"; };
                E1FF57A20F01255B00891EBB /* ThreadGlobalData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThreadGlobalData.h; sourceTree = "<group>"; };
                E1FF57A50F01256B00891EBB /* ThreadGlobalData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ThreadGlobalData.cpp; sourceTree = "<group>"; };
                E406F3FB1198307D009D59D6 /* ColorData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ColorData.cpp; sourceTree = "<group>"; };
                                1ADA140F0E1AE5D900023EE5 /* PluginMainThreadScheduler.h */,
                                31D591B9166C2E6C00E6BF02 /* PlugInOriginHash.cpp */,
                                31D591BA166C2E6C00E6BF02 /* PlugInOriginHash.h */,
+                               E1FC457D16DF0B880010F7B2 /* PluginRequest.h */,
                                1AA8798F11CBE846003C664F /* PluginStrategy.h */,
+                               E1FC457916DF0AD90010F7B2 /* PluginStream.h */,
+                               E1FC457B16DF0AF10010F7B2 /* PluginStreamClient.h */,
+                               E1FC457716DF0A750010F7B2 /* PluginView.h */,
                                0AFDAC3C10F5448C00E1F3D2 /* PluginViewBase.h */,
                                76FF17E211235673001D61B5 /* PluginViewNone.cpp */,
                        );
                                BCB16C010979C3BD00467741 /* CachedCSSStyleSheet.h */,
                                BC64B4C90CB4295D005F2B62 /* CachedFont.cpp */,
                                BC64B4CA0CB4295D005F2B62 /* CachedFont.h */,
+                               E1FC457316DDF7E30010F7B2 /* CachedFontClient.h */,
                                BCB16C020979C3BD00467741 /* CachedImage.cpp */,
                                BCB16C030979C3BD00467741 /* CachedImage.h */,
                                319FBD5D15D2F444009640A6 /* CachedImageClient.h */,
                                D0EDA772143E303C0028E383 /* CachedRawResource.cpp */,
                                D0EDA773143E303C0028E383 /* CachedRawResource.h */,
+                               E1FC457116DDF7220010F7B2 /* CachedRawResourceClient.h */,
                                BCB16C060979C3BD00467741 /* CachedResource.cpp */,
                                BCB16C070979C3BD00467741 /* CachedResource.h */,
                                BCFB2E5D0979E46400BA703D /* CachedResourceClient.h */,
                                D0BC54481443AC4A00E105DA /* CachedStyleSheetClient.h */,
                                A104F24114C71F7A009E2C23 /* CachedSVGDocument.cpp */,
                                A104F24214C71F7A009E2C23 /* CachedSVGDocument.h */,
+                               E1FC456D16DCB9000010F7B2 /* CachedSVGDocumentClient.h */,
+                               E1FC456F16DCB9770010F7B2 /* CachedSVGDocumentReference.cpp */,
                                FB2C15C2165D64900039C9F8 /* CachedSVGDocumentReference.h */,
                                0753860014489E9800B78452 /* CachedTextTrack.cpp */,
                                0753860114489E9800B78452 /* CachedTextTrack.h */,
                                5038BE2D1472AD230095E0D1 /* StyleCachedShader.cpp */,
                                5038BE2E1472AD230095E0D1 /* StyleCachedShader.h */,
                                503D0CAD14B5B0BA00F32F57 /* StyleCustomFilterProgram.h */,
+                               E1FC457516DE000F0010F7B2 /* StyleCustomFilterProgram.cpp */,
                                BC5EB67E0E81D4A700B25965 /* StyleDashboardRegion.h */,
                                BC5EB8B60E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.cpp */,
                                BC5EB8B70E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.h */,
                                977E2E0F12F0FC9C00C13380 /* XSSAuditorDelegate.h in Headers */,
                                FD537353137B651800008DCE /* ZeroPole.h in Headers */,
                                41B8CD4616D04591000E8CC0 /* SelectorCheckerFastPath.h in Headers */,
+                               E1FC456E16DCB9010010F7B2 /* CachedSVGDocumentClient.h in Headers */,
+                               E1FC457216DDF7250010F7B2 /* CachedRawResourceClient.h in Headers */,
+                               E1FC457416DDF7E60010F7B2 /* CachedFontClient.h in Headers */,
+                               E1FC457816DF0A750010F7B2 /* PluginView.h in Headers */,
+                               E1FC457A16DF0ADA0010F7B2 /* PluginStream.h in Headers */,
+                               E1FC457C16DF0AF10010F7B2 /* PluginStreamClient.h in Headers */,
+                               E1FC457E16DF0B880010F7B2 /* PluginRequest.h in Headers */,
                                49140257168E02EC002D6C6A /* TimelineTraceEventProcessor.h in Headers */,
                                 A024575216CEAA27000E5671 /* EXTDrawBuffers.h in Headers */,
                        );
                                977E2E0E12F0FC9C00C13380 /* XSSAuditorDelegate.cpp in Sources */,
                                FD537352137B651800008DCE /* ZeroPole.cpp in Sources */,
                                41B8CD4516D04591000E8CC0 /* SelectorCheckerFastPath.cpp in Sources */,
+                               E1FC457016DCB9770010F7B2 /* CachedSVGDocumentReference.cpp in Sources */,
+                               E1FC457616DE00100010F7B2 /* StyleCustomFilterProgram.cpp in Sources */,
                                49140256168E02E8002D6C6A /* TimelineTraceEventProcessor.cpp in Sources */,
                                E14A94D716DFDF950068DE82 /* BlobRegistry.cpp in Sources */,
                                 A024575116CEAA27000E5671 /* EXTDrawBuffers.cpp in Sources */,
index c57b85feaf932bd216b6d5f5b91e460111253edf..efe485177b31fd11e163031204f17308a4fc9ab3 100644 (file)
@@ -25,6 +25,7 @@
 #include "Document.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "Page.h"
 #include "ScriptSourceCode.h"
index 2a917f552b6105895807a6cda1b169bc598ba2a6..b61c96d81916ada8b231f66294ad6d3ad9ac918b 100644 (file)
@@ -27,8 +27,6 @@
 #include "JSNode.h"
 
 #include "Attr.h"
-#include "CachedImage.h"
-#include "CachedScript.h"
 #include "CDATASection.h"
 #include "Comment.h"
 #include "Document.h"
index a605e638f5019d947ceccd5c2ba4b31c4e3e5d68..b4dafc1446b38ddb94c3692d08ddc13299418fbc 100644 (file)
@@ -25,7 +25,7 @@
 #include "Event.h"
 #include "EventNames.h"
 #include "Frame.h"
-#include "FrameLoaderClient.h"
+#include "FrameLoader.h"
 #include "GCController.h"
 #include "HTMLPlugInElement.h"
 #include "InspectorInstrumentation.h"
index 0355ece4bf128e01c1282331c6483ea971df5c41..97984dd01e99cc9308e36cd2968c91b3b5a7e84e 100644 (file)
@@ -32,7 +32,6 @@
 #define ScriptSourceCode_h
 
 #include "CachedResourceHandle.h"
-#include "CachedScript.h"
 #include "CachedScriptSourceProvider.h"
 #include "KURL.h"
 #include <parser/SourceProvider.h>
@@ -41,6 +40,8 @@
 
 namespace WebCore {
 
+class CachedScript;
+
 class ScriptSourceCode {
 public:
     ScriptSourceCode(const String& source, const KURL& url = KURL(), const TextPosition& startPosition = TextPosition::minimumPosition())
index d37e9853435dc1be15687333305c4600ed833a0f..f2278682707c4d7fe8686b812a8ce0ba3dfa7a6a 100644 (file)
@@ -29,6 +29,7 @@
 #import "DOMInternal.h" // import first to make the private/public trick work
 #import "DOM.h"
 
+#import "CachedImage.h"
 #import "DOMElementInternal.h"
 #import "DOMHTMLCanvasElement.h"
 #import "DOMHTMLTableCellElementInternal.h"
index 9f5c7b46c646c6e78f48fb6de29f5f157dd062a5..5f3475d80ed12fc27735df4718eb598943bd3ad5 100644 (file)
@@ -40,6 +40,7 @@
 #include "EventListener.h"
 #include "EventNames.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HistogramSupport.h"
 #include "InspectorInstrumentation.h"
index 954690418d0f57b5f7c7d8a2bce8a2286d3e3a5e..5d8762d150ab622014e0b24f337f7e795e9d3cad 100644 (file)
@@ -35,6 +35,7 @@
 #include "DateExtension.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "InspectorInstrumentation.h"
 #include "Page.h"
index 15d8bb1d6f0dee87e1748ed050e3fa8fcae192d3..753c4bd875716283d96811547aa7b9c8b3628823 100644 (file)
@@ -39,6 +39,7 @@
 #include "ExceptionCode.h"
 #include "Frame.h"
 #include "FrameLoadRequest.h"
+#include "FrameLoader.h"
 #include "FrameView.h"
 #include "HTMLCollection.h"
 #include "HTMLDocument.h"
index fc2e8c89c3e2598fcef0c51f931b9ee22e0b02ad..8cea24f0a62c78b53803b4a244b60de7405860a3 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef CSSCrossfadeValue_h
 #define CSSCrossfadeValue_h
 
-#include "CachedImage.h"
 #include "CachedImageClient.h"
 #include "CachedResourceHandle.h"
 #include "CSSImageGeneratorValue.h"
@@ -75,15 +74,17 @@ private:
         : CSSImageGeneratorValue(CrossfadeClass)
         , m_fromValue(fromValue)
         , m_toValue(toValue)
-        , m_cachedFromImage(0)
-        , m_cachedToImage(0)
-        , m_crossfadeSubimageObserver(this) { }
+        , m_crossfadeSubimageObserver(this)
+    {
+    }
 
     class CrossfadeSubimageObserverProxy : public CachedImageClient {
     public:
         CrossfadeSubimageObserverProxy(CSSCrossfadeValue* ownerValue)
-        : m_ownerValue(ownerValue)
-        , m_ready(false) { }
+            : m_ownerValue(ownerValue)
+            , m_ready(false)
+        {
+        }
 
         virtual ~CrossfadeSubimageObserverProxy() { }
         virtual void imageChanged(CachedImage*, const IntRect* = 0) OVERRIDE;
index 0488d10d32600e47dedd0f728c0034ca04adf15c..da81ba4a518192146d3fcd72d3c223238d45c9cd 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef CSSFontFaceSource_h
 #define CSSFontFaceSource_h
 
-#include "CachedFont.h"
+#include "CachedFontClient.h"
 #include "CachedResourceHandle.h"
 #include "Timer.h"
 #include <wtf/HashMap.h>
index cb0dc8d14b18ff489c36a7f200503a409e972336..44c62a7fbc5c7bce60a76b62b1b0635188f4051e 100644 (file)
@@ -41,6 +41,7 @@
 #include "Document.h"
 #include "FontCache.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "RenderObject.h"
 #include "Settings.h"
 #include "SimpleFontData.h"
index 568d0f392e265b4faf29eac88fcedf7323fe2d40..4442696e86b2d6bd952225ca6f1ec9f5f3aa5e62 100644 (file)
@@ -31,6 +31,7 @@
 #include "CachedResourceLoader.h"
 #include "CachedResourceRequest.h"
 #include "CachedResourceRequestInitiators.h"
+#include "CachedSVGDocument.h"
 #include "Document.h"
 #include "WebCoreMemoryInstrumentation.h"
 
index 9a3ac68f8172cc5cf665ca0e12919bdc7dfd6349..04eef1a6219dfd280181059c83e412478d5cf9ca 100644 (file)
 
 #include "CSSValue.h"
 #include "CachedResourceHandle.h"
-#include "CachedSVGDocument.h"
 
 namespace WebCore {
 
 class CachedResourceLoader;
+class CachedSVGDocument;
 
 class WebKitCSSSVGDocumentValue : public CSSValue {
 public:
index 0279925152ee2b11e1d19102b590329be32d3ad6..f3f89cdaa114b50797b3b3c548e129f195804ca7 100644 (file)
@@ -26,7 +26,6 @@
 #include "config.h"
 #include "Clipboard.h"
 
-#include "CachedImage.h"
 #include "FileList.h"
 #include "Frame.h"
 #include "FrameLoader.h"
@@ -40,7 +39,6 @@ Clipboard::Clipboard(ClipboardAccessPolicy policy, ClipboardType clipboardType)
     , m_effectAllowed("uninitialized")
     , m_dragStarted(false)
     , m_clipboardType(clipboardType)
-    , m_dragImage(0)
 {
 }
     
index 6e6e7bb542c083b5fcd1327a7ff0ad930039ed26..55eaa076051bba5bf0297dbcf59606e86f917e04 100644 (file)
@@ -39,7 +39,6 @@
 #include "InsertionPoint.h"
 #include "InspectorInstrumentation.h"
 #include "LoaderStrategy.h"
-#include "MemoryCache.h"
 #include "MutationEvent.h"
 #include "NodeRenderStyle.h"
 #include "NodeTraversal.h"
index 1ca2822ffdcf6fc3326d919662e1fde97010110c..53798f1ce8799c07ef45ddc394a9c09bde2a34fb 100644 (file)
@@ -32,6 +32,7 @@
 #include "Element.h"
 #include "ExceptionCode.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FTPDirectoryDocument.h"
 #include "HTMLDocument.h"
index 39964625e082ec4a0f795146c86a290c1815e818..53d3a86db2d1f7b9cb1f92d58f0566afaeda77ab 100644 (file)
@@ -30,6 +30,7 @@
 #include "CachedResourceHandle.h"
 #include <wtf/text/TextPosition.h>
 #include <wtf/PassRefPtr.h>
+#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
index 73d82d1dc1b3ad5dbd804f54a867eb2500dcd8a8..a6e250bc4c003ba61dd032e41a8b0f4fec2ba790 100644 (file)
@@ -31,6 +31,7 @@
 #include "CrossOriginAccessControl.h"
 #include "Document.h"
 #include "DocumentParser.h"
+#include "Event.h"
 #include "Frame.h"
 #include "FrameLoader.h"
 #include "HTMLNames.h"
index 5f98d75833fd8ce8269d2a314bbcdc194e126868..ff42b951d5a546f44f85bc1665d80e4c320adfe6 100644 (file)
@@ -24,6 +24,7 @@
 #include "CachedResourceClient.h"
 #include "CachedResourceHandle.h"
 #include <wtf/text/TextPosition.h>
+#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
index 0e1168b4c9fc7f66cc1e6545beb758d1453d4c1e..bac63720bbeed2e05c63cdac2ecb5a176c3e7f58 100644 (file)
@@ -34,6 +34,7 @@
 #include "EventNames.h"
 #include "FocusController.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameView.h"
 #include "HistoryItem.h"
index 2d0a7cee61b96ad863db20321d8afb0088e6e84f..47d823ec4bc4c02ac5da60040743f4ba886df1fb 100644 (file)
@@ -36,6 +36,7 @@
 #include "KURL.h"
 #include "MemoryCache.h"
 #include "PublicURLManager.h"
+#include "ResourceRequest.h"
 #include "ScriptExecutionContext.h"
 #include "SecurityOrigin.h"
 #include "ThreadableBlobRegistry.h"
index 9d19dadcaaf433d75b0801b31115ff7bd1edc190..4051628e19adec4a514a48baf792169029a4777a 100644 (file)
@@ -28,6 +28,7 @@
 #include "DNS.h"
 #include "EventNames.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameLoaderTypes.h"
 #include "HTMLImageElement.h"
@@ -37,6 +38,7 @@
 #include "MouseEvent.h"
 #include "PingLoader.h"
 #include "RenderImage.h"
+#include "ResourceRequest.h"
 #include "SecurityOrigin.h"
 #include "SecurityPolicy.h"
 #include "Settings.h"
index 7e0bba4ad1a8ae8e3041ed4e76ad3152a38491cc..50893c64250aad84a097ee05f2cba994b0383c78 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "Attribute.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLDocument.h"
 #include "HTMLNames.h"
 #include "HTMLParamElement.h"
index 02c9cacc6fe69363a6c529bc5bef485d8cfc94a8..6539116cfe57fe9fd778b3b0869c11d484f73344 100644 (file)
@@ -37,6 +37,7 @@
 #include "EventNames.h"
 #include "ExceptionCode.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLBRElement.h"
 #include "HTMLCollection.h"
 #include "HTMLDocument.h"
index 913496fbc48741863d6efa150944920226810348..c33e2f8b9c0d4d9b3fe995d40683a7299e0902f5 100644 (file)
@@ -28,6 +28,7 @@
 #include "CSSPropertyNames.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLDocument.h"
 #include "HTMLImageLoader.h"
 #include "HTMLNames.h"
index ff138e76c8e8757947b6ecce58ae7b60f03c4abf..e2f97090e9e62025c65468703cebc7328a4376c6 100644 (file)
@@ -30,6 +30,7 @@
 #include "Event.h"
 #include "EventNames.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLNames.h"
 #include "Length.h"
index 8f6ec74eba12857a91d22b4266c29a70db92e413..fa6284d4e8bdc63ffc8571e582f6c9ba7bfc3e76 100644 (file)
@@ -29,6 +29,7 @@
 #include "DocumentLoader.h"
 #include "DocumentParser.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLNames.h"
 
 namespace WebCore {
index 7fb7f8ff487267b8378f35a40ac986123a7447d7..36d33f9595bf404b09d69bcc4e22499b238ea12f 100644 (file)
@@ -26,6 +26,7 @@
 #include "Attribute.h"
 #include "CSSPropertyNames.h"
 #include "CSSValueKeywords.h"
+#include "CachedImage.h"
 #include "EventNames.h"
 #include "FrameView.h"
 #include "HTMLDocument.h"
index eb705443770aa5561982ffa79284c914c57e100a..f4d67582d49eacd54a33722394cc8e75e2637c03 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "Attribute.h"
 #include "CSSValueKeywords.h"
+#include "CachedImage.h"
 #include "Chrome.h"
 #include "ChromeClient.h"
 #include "EventNames.h"
index c617828d3d00332c294ac413bdfe884aa5752d9c..5fa8228537300f95e00ff9f1943cd84928ea5e60 100644 (file)
@@ -28,6 +28,7 @@
 #include "ChromeClient.h"
 #include "CSSPropertyNames.h"
 #include "Document.h"
+#include "Event.h"
 #include "Frame.h"
 #include "FrameLoader.h"
 #include "FrameTree.h"
index c6352fcba4b1fd485e4727c34391caa1a41574a1..da24fa6c1370f36d4437e24da6f8d7b21933fa96 100644 (file)
@@ -31,6 +31,7 @@
 #include "EventNames.h"
 #include "ExceptionCodePlaceholder.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameView.h"
 #include "HTMLHtmlElement.h"
index fcb344006a0bae9f9e1a214fc4abefa7735fa275..66325d43c0bab25fae1cf4b4e3fdb0784ca1c97d 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 #include "ImageInputType.h"
 
+#include "CachedImage.h"
 #include "FormDataList.h"
 #include "HTMLFormElement.h"
 #include "HTMLImageLoader.h"
index f8a302c6df8d32ef0d49ed81f9e37836847f5992..2c82a2cde27db7ecef0fc06e189ee7ea08146d0e 100644 (file)
@@ -32,6 +32,7 @@
 #include "EventNames.h"
 #include "ExceptionCodePlaceholder.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLEmbedElement.h"
 #include "HTMLHtmlElement.h"
index 9456b61bffa8f9e5eb9248b550c2d080c57d34e8..c99e350993c329f897292c92520f108edf83a656 100644 (file)
@@ -28,6 +28,7 @@
 #include "DocumentLoader.h"
 #include "ExceptionCodePlaceholder.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameView.h"
 #include "HTMLEmbedElement.h"
index deb64b10241a14e87f7ee2b43a130a6f60a11d55..a14619e590ef7c03aa5988ad6bc19724e5e11778 100644 (file)
@@ -37,6 +37,7 @@
 #include "ExceptionCode.h"
 #include "Extensions3D.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameView.h"
 #include "HTMLCanvasElement.h"
index 9422a8c9c06dc64ee3c259f27566e91db83f58b9..fe018b6b1b71409ad6f18b72f5292823e8076181 100644 (file)
@@ -33,6 +33,7 @@
 #include "DocumentType.h"
 #include "Element.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLDocument.h"
 #include "HTMLElementFactory.h"
index fbfbec1bd4e69df828372d941d9be0bc512df17c..8f6a6b02bbdce2ac45e8040a22589f57e9bc0ad3 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "Document.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "Settings.h"
 
 namespace WebCore {
index a7226dc1c235e98ffd48cab8d03561c573c5d0ad..fe2e0aedfd1d0e48b1a2a012ea3ab3e3d7479cbe 100644 (file)
@@ -28,8 +28,9 @@
 
 #include "PendingScript.h"
 #include <wtf/Deque.h>
-#include <wtf/text/TextPosition.h>
+#include <wtf/PassOwnPtr.h>
 #include <wtf/PassRefPtr.h>
+#include <wtf/text/TextPosition.h>
 
 namespace WebCore {
 
index 7848c264bc340bed626fba169ff0abb434319f7c..6ed53ebf12a1bfc42d363f5456e05a18f58c0dc2 100644 (file)
@@ -36,7 +36,7 @@
 #include "FormData.h"
 #include "FormDataList.h"
 #include "Frame.h"
-#include "FrameLoaderClient.h"
+#include "FrameLoader.h"
 #include "HTMLDocumentParser.h"
 #include "HTMLNames.h"
 #include "HTMLTokenizer.h"
index b3c30ee8b9dd90d52aa43911fc94dd44dc5b9f1d..1ac1288abd23ba92d3fa18b52e5a617367ea9814 100644 (file)
@@ -31,6 +31,7 @@
 #include "Document.h"
 #include "FormData.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLParserIdioms.h"
 #include "InspectorValues.h"
index 84824e6256f52f095d3f4440d606f30de471475f..b844df28bd83745dcf0625f3be89c846f4372ec0 100644 (file)
@@ -32,6 +32,7 @@
 #if ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)
 #include "InspectorDebuggerAgent.h"
 
+#include "CachedResource.h"
 #include "ContentSearchUtils.h"
 #include "InjectedScript.h"
 #include "InjectedScriptManager.h"
index 2b0d644319f94db11f3716b328719e8f7d41260e..9b8077df1c6841e92af810d71c3b32ba611fcc3b 100644 (file)
@@ -43,6 +43,7 @@
 #include "EntryArray.h"
 #include "EntryCallback.h"
 #include "ErrorCallback.h"
+#include "Event.h"
 #include "File.h"
 #include "FileCallback.h"
 #include "FileEntry.h"
index 021eadd291311d8570218fe7caec701c1d801431..a3857d1d3d763e8789ef9c5e1a4d599e4ed7999d 100644 (file)
@@ -48,6 +48,9 @@
 #include "InspectorFrontendClient.h"
 #include "Page.h"
 #include "Pasteboard.h"
+#include "ResourceError.h"
+#include "ResourceRequest.h"
+#include "ResourceResponse.h"
 #include "ScriptFunctionCall.h"
 #include "UserGestureIndicator.h"
 
index 86b1582615abbbc18d4a468832ffd06933e94c78..1544be7f685f4e3008382e4f6d03d6d5b7693a26 100644 (file)
@@ -36,6 +36,7 @@
 #include "ConsoleTypes.h"
 #include "Element.h"
 #include "EventContext.h"
+#include "FormData.h"
 #include "Frame.h"
 #include "HitTestResult.h"
 #include "Page.h"
@@ -55,18 +56,17 @@ class CharacterData;
 class DOMWindow;
 class DOMWrapperWorld;
 class Database;
+class DeviceOrientationData;
 class Document;
+class DocumentLoader;
 class Element;
 class EventContext;
-class DocumentLoader;
-class DeviceOrientationData;
 class GeolocationPosition;
 class GraphicsContext;
 class InspectorCSSAgent;
 class InspectorInstrumentation;
 class InspectorTimelineAgent;
 class InstrumentingAgents;
-class KURL;
 class Node;
 class RenderLayer;
 class RenderObject;
index 699cc987a542702eda8b9367c339af56907ad4ed..f234bbe9289ff7a122991d0827898a4141b660a2 100644 (file)
@@ -49,6 +49,7 @@
 #include "Document.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameView.h"
 #include "GeolocationController.h"
 #include "GeolocationError.h"
index fe97ff00654ac0467f9f8fa5cc3555e8346ca8d8..53ac0ba43ff1e488ae3b7e0b22023970020c1921 100644 (file)
@@ -32,7 +32,9 @@
 
 #include "NetworkResourcesData.h"
 
+#include "CachedResource.h"
 #include "DOMImplementation.h"
+#include "ResourceResponse.h"
 #include "SharedBuffer.h"
 #include "TextResourceDecoder.h"
 #include <wtf/MemoryInstrumentationHashMap.h>
index dd91b4d5a462991e0efff3ded3918a97c699977b..dac5262bb32e7a29de57bde5753e64605ace680e 100644 (file)
@@ -29,9 +29,9 @@
 #ifndef NetworkResourcesData_h
 #define NetworkResourcesData_h
 
+#include "HTTPHeaderMap.h"
 #include "InspectorPageAgent.h"
 #include "TextResourceDecoder.h"
-
 #include <wtf/Deque.h>
 #include <wtf/HashMap.h>
 #include <wtf/RefCounted.h>
@@ -43,6 +43,7 @@
 namespace WebCore {
 
 class CachedResource;
+class FormData;
 class SharedBuffer;
 class TextResourceDecoder;
 
index e5b7587acfb917feed2286485c9d28a12ce10bce..0486940bf99f03a9549e4f55670d584ed782e00c 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "Document.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "NetworkingContext.h"
 #include "PlatformCookieJar.h"
 
index 23c6e1cc73bb60c18fa65e55705aaa8b739ba0bb..7b50dab0c706e6075080d99462f3dd8681db8abb 100644 (file)
@@ -28,6 +28,7 @@
 #include "CrossOriginAccessControl.h"
 
 #include "HTTPParsers.h"
+#include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "SecurityOrigin.h"
 #include <wtf/Threading.h>
index 5ee3dd1f9223c18abb53784d79b92dc2aab271a2..0b2d272bdd62320514e7acf59fd0d8b67ce476f7 100644 (file)
 #ifndef CrossOriginAccessControl_h
 #define CrossOriginAccessControl_h
 
-#include "ResourceHandle.h"
-#include "ResourceRequest.h"
+#include "ResourceHandleTypes.h"
 #include <wtf/Forward.h>
 #include <wtf/HashSet.h>
+#include <wtf/text/StringHash.h>
 
 namespace WebCore {
 
 typedef HashSet<String, CaseFoldingHash> HTTPHeaderSet;
 
 class HTTPHeaderMap;
+class ResourceRequest;
 class ResourceResponse;
 class SecurityOrigin;
 
index 28504924500b0978799e7b0a4a62301d417c8a4b..0d64338b263120ea35cae62e247947249f2c74a7 100644 (file)
@@ -28,7 +28,7 @@
 #define CrossOriginPreflightResultCache_h
 
 #include "KURLHash.h"
-#include "ResourceHandle.h"
+#include "ResourceHandleTypes.h"
 #include <wtf/HashMap.h>
 #include <wtf/HashSet.h>
 #include <wtf/PassOwnPtr.h>
index 12a38c09527d7dcbb4b07e8d521899a2a6969879..db4860cb2e3a15ed5519bb5e90add99a6cb76196 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef DocumentThreadableLoader_h
 #define DocumentThreadableLoader_h
 
-#include "CachedRawResource.h"
+#include "CachedRawResourceClient.h"
 #include "CachedResourceHandle.h"
 #include "FrameLoaderTypes.h"
 #include "ThreadableLoader.h"
@@ -43,6 +43,7 @@
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
+    class CachedRawResource;
     class Document;
     class KURL;
     class ResourceRequest;
index 6d247ba3a98a3d82e65cbb0f3d422356a68bc89c..1e58294c8bf90b1269bdb9b8d7d71e983e64fcfb 100644 (file)
@@ -87,6 +87,7 @@
 #include "PluginData.h"
 #include "PluginDatabase.h"
 #include "PluginDocument.h"
+#include "PolicyChecker.h"
 #include "ProgressTracker.h"
 #include "ResourceHandle.h"
 #include "ResourceRequest.h"
@@ -210,7 +211,7 @@ private:
 FrameLoader::FrameLoader(Frame* frame, FrameLoaderClient* client)
     : m_frame(frame)
     , m_client(client)
-    , m_policyChecker(frame)
+    , m_policyChecker(adoptPtr(new PolicyChecker(frame)))
     , m_history(frame)
     , m_notifer(frame)
     , m_subframeLoader(frame)
index f3292727d2c80fe4833189b6b012c1347e791ecf..423f6c34f4e51d700f5f175076641e6e399eafdf 100644 (file)
@@ -40,8 +40,7 @@
 #include "IconURL.h"
 #include "LayoutMilestones.h"
 #include "MixedContentChecker.h"
-#include "PolicyChecker.h"
-#include "ResourceHandle.h"
+#include "ResourceHandleTypes.h"
 #include "ResourceLoadNotifier.h"
 #include "SecurityContext.h"
 #include "SubframeLoader.h"
@@ -65,6 +64,7 @@ class FrameLoaderClient;
 class FrameNetworkingContext;
 class NavigationAction;
 class NetworkingContext;
+class PolicyChecker;
 class Page;
 class ResourceError;
 class ResourceRequest;
@@ -89,7 +89,7 @@ public:
 
     Frame* frame() const { return m_frame; }
 
-    PolicyChecker* policyChecker() const { return &m_policyChecker; }
+    PolicyChecker* policyChecker() const { return m_policyChecker.get(); }
     HistoryController* history() const { return &m_history; }
     ResourceLoadNotifier* notifier() const { return &m_notifer; }
     SubframeLoader* subframeLoader() const { return &m_subframeLoader; }
@@ -380,7 +380,7 @@ private:
     // FIXME: These should be OwnPtr<T> to reduce build times and simplify
     // header dependencies unless performance testing proves otherwise.
     // Some of these could be lazily created for memory savings on devices.
-    mutable PolicyChecker m_policyChecker;
+    mutable OwnPtr<PolicyChecker> m_policyChecker;
     mutable HistoryController m_history;
     mutable ResourceLoadNotifier m_notifer;
     mutable SubframeLoader m_subframeLoader;
index 81a129d20b09c0419d833e88afdfe97ffa288a06..70db42fe3de04cad6cff2d8b96e1e51a67dfc9af 100644 (file)
@@ -31,6 +31,7 @@
 #include "Event.h"
 #include "EventSender.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLNames.h"
 #include "HTMLObjectElement.h"
 #include "HTMLParserIdioms.h"
index f59d4d577777d02963b732ec9bbabf25f783badb..925af821f47407fc3c40950fa6f02faa3923fd69 100644 (file)
@@ -23,7 +23,6 @@
 #ifndef ImageLoader_h
 #define ImageLoader_h
 
-#include "CachedImage.h"
 #include "CachedImageClient.h"
 #include "CachedResourceHandle.h"
 #include <wtf/text/AtomicString.h>
index 4c853daf4f31a175a91a81f37ffabadff67cbc1d..6226de8c798f03a3a91d2c453f3f53524d331bbc 100644 (file)
@@ -42,6 +42,8 @@
 
 namespace WebCore {
 
+class Document;
+class KURL;
 struct LinkRelAttribute;
 #if ENABLE(LINK_PRERENDER)
 class PrerenderHandle;
index e52d53680661343bfc271b27e66aeaff821852f0..810572f7974d5fad3b138816159903a186439240 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "ApplicationCacheHost.h"
 #include "BackForwardController.h"
+#include "CachedRawResource.h"
 #include "CachedResourceLoader.h"
 #include "CachedResourceRequest.h"
 #include "Console.h"
 #include "InspectorInstrumentation.h"
 #include "MemoryCache.h"
 #include "Page.h"
+#include "PolicyChecker.h"
 #include "ProgressTracker.h"
 #include "ResourceBuffer.h"
 #include "ResourceError.h"
-#include "ResourceHandle.h"
 #include "SchemeRegistry.h"
 #include "SecurityOrigin.h"
 #include "Settings.h"
index cabf2e13ef82cc66749ef6556eff0ea92752e449..65198350843c658a8689a7a2f5c42421ab8732a6 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef MainResourceLoader_h
 #define MainResourceLoader_h
 
-#include "CachedRawResource.h"
+#include "CachedRawResourceClient.h"
 #include "CachedResourceHandle.h"
 #include "FrameLoaderTypes.h"
 #include "ResourceLoader.h"
@@ -44,6 +44,7 @@
 
 namespace WebCore {
 
+class CachedRawResource;
 class FormState;
 class ResourceRequest;
     
index b8c293dcb3b380c39d5cf4187d525b19beb2b42b..5c52c494ced080b643535ad494413d2c42d07fb7 100644 (file)
@@ -33,6 +33,7 @@
 #include "DOMWindow.h"
 #include "Document.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "SchemeRegistry.h"
 #include "SecurityOrigin.h"
index 5442027184c47b51016f7271aa87db708bc3c9f6..1cc2208ce5838fc52c500470f2486088d02a1ebe 100644 (file)
 #include "Document.h"
 #include "FormData.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "InspectorInstrumentation.h"
 #include "Page.h"
 #include "ProgressTracker.h"
 #include "ResourceHandle.h"
+#include "ResourceRequest.h"
+#include "ResourceResponse.h"
 #include "SecurityOrigin.h"
 #include "SecurityPolicy.h"
 #include <wtf/OwnPtr.h>
index 5a4d6b3dc3bb84104f41f28372fcd8676fa86a34..6885c8fe673df3f7d6f2798cd34907ad2f8ff2fd 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "FrameLoaderTypes.h"
 #include "PolicyCallback.h"
-#include "ResourceRequest.h"
 #include <wtf/PassRefPtr.h>
 #include <wtf/text/WTFString.h>
 
@@ -43,6 +42,7 @@ class FormState;
 class Frame;
 class NavigationAction;
 class ResourceError;
+class ResourceRequest;
 class ResourceResponse;
 
 class PolicyChecker {
index 92388ec0526c40c881c95da4eb17e533d6bd9d3a..ee9c43aabc4032654fa0c656f3f1ae8a8ea55f9a 100644 (file)
@@ -29,8 +29,8 @@
 #include "DocumentLoader.h"
 #include "Frame.h"
 #include "FrameLoader.h"
-#include "FrameLoaderStateMachine.h"
 #include "FrameLoaderClient.h"
+#include "FrameLoaderStateMachine.h"
 #include "InspectorInstrumentation.h"
 #include "Logging.h"
 #include "ResourceResponse.h"
index 1f68fb4ac37dbdf904150b710ee9c0fe57913577..7a55088cbe0226183b722928dde2e6cefd33aa3a 100644 (file)
@@ -38,6 +38,7 @@
 #include "ContentSecurityPolicy.h"
 #include "DiagnosticLoggingKeys.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLAppletElement.h"
 #include "HTMLFrameElementBase.h"
index 27d6f3ecde2c86aca94f6c8c5f2c1f8fb195a6b1..692bb978d6f024e1756e2260a516c20d1a7831dc 100644 (file)
@@ -33,6 +33,7 @@
 #include "Document.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "Logging.h"
 #include "MemoryCache.h"
 #include "ResourceBuffer.h"
index 0ba636b8e8542563a7126dcad1c7b4478911c596..335a68e0740276c7cba4297ab6e9e0d57535cb6e 100644 (file)
@@ -36,7 +36,6 @@
 #include "Document.h"
 #include "Logging.h"
 #include "ResourceBuffer.h"
-#include "ResourceHandle.h"
 #include "ScriptCallStack.h"
 #include "SecurityOrigin.h"
 #include "WebVTTParser.h"
index e7703ac7b8ecdff1da308610e7e80c3fec3c74fb..dfdad677b643598c5865434fea468d2a6a002c72 100644 (file)
 
 #include "CachedResourceClient.h"
 #include "CachedResourceHandle.h"
-#include "CachedTextTrack.h"
 #include "Timer.h"
 #include "WebVTTParser.h"
 #include <wtf/OwnPtr.h>
 
 namespace WebCore {
 
+class CachedTextTrack;
 class Document;
 class TextTrackLoader;
 class ScriptExecutionContext;
index 78e38c17a2b3bd869cb36624d36acbc85746f811..bfb43c1a04f3571e6f3b9aeaa299435ec4296458 100644 (file)
@@ -31,7 +31,6 @@
 #ifndef ThreadableLoader_h
 #define ThreadableLoader_h
 
-#include "ResourceHandle.h"
 #include "ResourceLoaderOptions.h"
 #include "SecurityOrigin.h"
 #include <wtf/Noncopyable.h>
index b6cb2ddda41516482b6e74db7240431996f806ef..184ef226322f19c6827d51fbd376f511464b13b0 100644 (file)
@@ -44,6 +44,7 @@
 #include "ManifestParser.h"
 #include "Page.h"
 #include "ResourceBuffer.h"
+#include "ResourceHandle.h"
 #include "ScriptProfile.h"
 #include "SecurityOrigin.h"
 #include "Settings.h"
index 07651fe6da0d950a23f95921a526248461a92297..1a4af86051c646d58d2f9a0e8a16c630e587c1ad 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "DOMApplicationCache.h"
 #include "KURL.h"
-#include "ResourceHandle.h"
 #include "ResourceHandleClient.h"
 #include "SharedBuffer.h"
 #include <wtf/Noncopyable.h>
@@ -43,6 +42,7 @@ class ApplicationCacheResource;
 class Document;
 class DocumentLoader;
 class Frame;
+class ResourceHandle;
 class SecurityOrigin;
 
 enum ApplicationCacheUpdateOption {
index 18fce65cf60950f96446730f97435f5f5131de49..ad0e0e92df900b1cba4b0a41592c560dfef7576c 100644 (file)
@@ -37,6 +37,7 @@
 #include "InspectorInstrumentation.h"
 #include "MainResourceLoader.h"
 #include "ProgressEvent.h"
+#include "ResourceHandle.h"
 #include "ResourceLoader.h"
 #include "ResourceRequest.h"
 #include "Settings.h"
index d622aca6e89324c114419719c391bb26eb54b44e..08097298affa625ca337bf9690a2e57acd37c14d 100644 (file)
@@ -29,7 +29,7 @@
 #include "config.h"
 #include "LegacyWebArchive.h"
 
-#include "MemoryCache.h"
+#include "CachedResource.h"
 #include "Document.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
 #include "Image.h"
 #include "KURLHash.h"
 #include "Logging.h"
-#include "markup.h"
-#include "Node.h"
+#include "MemoryCache.h"
 #include "Page.h"
 #include "Range.h"
 #include "ResourceBuffer.h"
 #include "Settings.h"
-#include <wtf/text/CString.h>
-#include <wtf/text/WTFString.h>
+#include "markup.h"
 #include <wtf/ListHashSet.h>
 #include <wtf/RetainPtr.h>
 
index 611bf4ab3f0c55080eac07c3ffb6d1cf5b6ac107..4eda27954206cb73b8fc239564ad7addaf3665fa 100644 (file)
@@ -31,6 +31,7 @@
 #define STORE_FONT_CUSTOM_PLATFORM_DATA
 #endif
 
+#include "CachedFontClient.h"
 #include "CachedResourceClient.h"
 #include "CachedResourceClientWalker.h"
 #include "CachedResourceLoader.h"
index 5c28e2d1e98ebb6174d4012e242ee428688ed234..ef4253c1a2567834ee9260699747d2097fd073c8 100644 (file)
@@ -76,14 +76,6 @@ private:
     friend class MemoryCache;
 };
 
-class CachedFontClient : public CachedResourceClient {
-public:
-    virtual ~CachedFontClient() { }
-    static CachedResourceClientType expectedType() { return FontType; }
-    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
-    virtual void fontLoaded(CachedFont*) { }
-};
-
 }
 
 #endif
diff --git a/Source/WebCore/loader/cache/CachedFontClient.h b/Source/WebCore/loader/cache/CachedFontClient.h
new file mode 100644 (file)
index 0000000..7cc2c42
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#ifndef CachedFontClient_h
+#define CachedFontClient_h
+
+#include "CachedResourceClient.h"
+
+namespace WebCore {
+
+class CachedFont;
+
+class CachedFontClient : public CachedResourceClient {
+public:
+    virtual ~CachedFontClient() { }
+    static CachedResourceClientType expectedType() { return FontType; }
+    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
+    virtual void fontLoaded(CachedFont*) { }
+};
+
+}
+
+#endif
index b7610be5ddafb3dbb45e130c0e0a523da53928fa..2c25232bddd1f32e2df1aa6c4f902d4da11dc22b 100644 (file)
@@ -29,8 +29,8 @@
 #include "CachedResourceClient.h"
 #include "CachedResourceClientWalker.h"
 #include "CachedResourceLoader.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
-#include "FrameLoaderTypes.h"
 #include "FrameView.h"
 #include "MemoryCache.h"
 #include "Page.h"
index de25cb9db60e455eb4d48bf6ccc842880305a067..0a07497870b7b04bd3f5689a8914209cc3e17d56 100644 (file)
@@ -26,7 +26,7 @@
 #include "config.h"
 #include "CachedRawResource.h"
 
-#include "CachedResourceClient.h"
+#include "CachedRawResourceClient.h"
 #include "CachedResourceClientWalker.h"
 #include "CachedResourceLoader.h"
 #include "ResourceBuffer.h"
index 518afc89bc0061617d2cfc0baa34210ed2b3cea3..663d024fa7bb1722473cc4c3ef951d69336e1255 100644 (file)
 #define CachedRawResource_h
 
 #include "CachedResource.h"
-#include "CachedResourceClient.h"
 
 namespace WebCore {
-class CachedRawResourceCallback;
-class CachedRawResourceClient;
+
+class CachedResourceClient;
 class SubresourceLoader;
 
 class CachedRawResource : public CachedResource {
@@ -83,22 +82,6 @@ private:
     Vector<RedirectPair> m_redirectChain;
 };
 
-
-class CachedRawResourceClient : public CachedResourceClient {
-public:
-    virtual ~CachedRawResourceClient() { }
-    static CachedResourceClientType expectedType() { return RawResourceType; }
-    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
-
-    virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
-    virtual void responseReceived(CachedResource*, const ResourceResponse&) { }
-    virtual void dataReceived(CachedResource*, const char* /* data */, int /* length */) { }
-    virtual void redirectReceived(CachedResource*, ResourceRequest&, const ResourceResponse&) { }
-#if PLATFORM(CHROMIUM)
-    virtual void dataDownloaded(CachedResource*, int) { }
-#endif
-};
-
 }
 
 #endif // CachedRawResource_h
diff --git a/Source/WebCore/loader/cache/CachedRawResourceClient.h b/Source/WebCore/loader/cache/CachedRawResourceClient.h
new file mode 100644 (file)
index 0000000..84f7933
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+    Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
+    Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
+    Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
+    Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public License
+    along with this library; see the file COPYING.LIB.  If not, write to
+    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+    Boston, MA 02110-1301, USA.
+*/
+
+#ifndef CachedRawResourceClient_h
+#define CachedRawResourceClient_h
+
+#include "CachedResourceClient.h"
+
+namespace WebCore {
+
+class CachedResource;
+class ResourceRequest;
+class ResourceResponse;
+
+class CachedRawResourceClient : public CachedResourceClient {
+public:
+    virtual ~CachedRawResourceClient() { }
+    static CachedResourceClientType expectedType() { return RawResourceType; }
+    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
+
+    virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
+    virtual void responseReceived(CachedResource*, const ResourceResponse&) { }
+    virtual void dataReceived(CachedResource*, const char* /* data */, int /* length */) { }
+    virtual void redirectReceived(CachedResource*, ResourceRequest&, const ResourceResponse&) { }
+#if PLATFORM(CHROMIUM)
+    virtual void dataDownloaded(CachedResource*, int) { }
+#endif
+};
+
+}
+
+#endif // CachedRawResourceClient_h
index f05ee4cda1d39df6b5de09fa7f24615bd9b2b211..ca2e8e35c0dbfe71a8f79dc490e9375f6cb64b08 100644 (file)
@@ -33,6 +33,7 @@
 #include "CrossOriginAccessControl.h"
 #include "Document.h"
 #include "DocumentLoader.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "InspectorInstrumentation.h"
 #include "KURL.h"
index 0df76930d654964bc087a7bfac474fb7d12e3aa6..8d972e1a9b50a3053db99e84c3f37d1dc0e1a053 100644 (file)
 #include "config.h"
 #include "CachedResourceHandle.h"
 
+#include "CachedResource.h"
 #include "WebCoreMemoryInstrumentation.h"
 
 namespace WebCore {
 
+CachedResourceHandleBase::CachedResourceHandleBase(CachedResource* resource)
+{
+    m_resource = resource;
+    if (m_resource)
+        m_resource->registerHandle(this);
+}
+
+CachedResourceHandleBase::CachedResourceHandleBase(const CachedResourceHandleBase& o)
+    : m_resource(o.m_resource)
+{
+    if (m_resource)
+        m_resource->registerHandle(this);
+}
+
+CachedResourceHandleBase::~CachedResourceHandleBase()
+{
+    if (m_resource)
+        m_resource->unregisterHandle(this);
+}
+
 void CachedResourceHandleBase::setResource(CachedResource* resource) 
 {
     if (resource == m_resource)
index 4a139202a5227e528c638bda306af63aa4dc0673..ab272e627350c2d751356a39ef9ec17904cbf479 100644 (file)
 #ifndef CachedResourceHandle_h
 #define CachedResourceHandle_h
 
-#include "CachedResource.h"
+#include <wtf/Forward.h>
 
 namespace WebCore {
 
+    class CachedResource;
+
     class CachedResourceHandleBase {
     public:
-        ~CachedResourceHandleBase() { if (m_resource) m_resource->unregisterHandle(this); }
+        ~CachedResourceHandleBase();
         CachedResource* get() const { return m_resource; }
         
         bool operator!() const { return !m_resource; }
@@ -44,9 +46,9 @@ namespace WebCore {
         void reportMemoryUsage(MemoryObjectInfo*) const;
 
     protected:
-        CachedResourceHandleBase() : m_resource(0) {}
-        CachedResourceHandleBase(CachedResource* res) { m_resource = res; if (m_resource) m_resource->registerHandle(this); }
-        CachedResourceHandleBase(const CachedResourceHandleBase& o) : m_resource(o.m_resource) { if (m_resource) m_resource->registerHandle(this); }
+        CachedResourceHandleBase() : m_resource(0) { }
+        CachedResourceHandleBase(CachedResource*);
+        CachedResourceHandleBase(const CachedResourceHandleBase&);
 
         void setResource(CachedResource*);
         
index 83e59c4cb95464d649db3f3f17478f78154aaa88..08d3be8aa5a24dfbc01d40ecb5ebf76937a9fe2d 100644 (file)
@@ -50,13 +50,6 @@ protected:
     RefPtr<TextResourceDecoder> m_decoder;
 };
 
-class CachedSVGDocumentClient : public CachedResourceClient {
-public:
-    virtual ~CachedSVGDocumentClient() { }
-    static CachedResourceClientType expectedType() { return SVGDocumentType; }
-    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
-};
-
 }
 
 #endif
diff --git a/Source/WebCore/loader/cache/CachedSVGDocumentClient.h b/Source/WebCore/loader/cache/CachedSVGDocumentClient.h
new file mode 100644 (file)
index 0000000..e936c26
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+    Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com>
+    Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com>
+    Copyright (C) 2012 University of Szeged
+    Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public License
+    along with this library; see the file COPYING.LIB.  If not, write to
+    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+    Boston, MA 02110-1301, USA.
+*/
+
+#ifndef CachedSVGDocumentClient_h
+#define CachedSVGDocumentClient_h
+
+#if ENABLE(SVG)
+
+#include "CachedResourceClient.h"
+
+namespace WebCore {
+
+class CachedSVGDocumentClient : public CachedResourceClient {
+public:
+    virtual ~CachedSVGDocumentClient() { }
+    static CachedResourceClientType expectedType() { return SVGDocumentType; }
+    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
+};
+
+}
+
+#endif
+
+#endif // CachedSVGDocumentClient_h
diff --git a/Source/WebCore/loader/cache/CachedSVGDocumentReference.cpp b/Source/WebCore/loader/cache/CachedSVGDocumentReference.cpp
new file mode 100644 (file)
index 0000000..73c28cf
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "CachedSVGDocumentReference.h"
+
+#if ENABLE(SVG) && ENABLE(CSS_FILTERS)
+
+#include "CachedSVGDocument.h"
+
+namespace WebCore {
+
+CachedSVGDocumentReference::CachedSVGDocumentReference(CachedSVGDocument* document)
+    : m_document(document)
+{
+    m_document->addClient(this);
+}
+
+CachedSVGDocumentReference::~CachedSVGDocumentReference()
+{
+    m_document->removeClient(this);
+}
+
+}
+
+#endif
index 468030f8bf28ef7a3c2e976d95bea524aa977fb2..01df1e02cec2b1ecb63b5d25b54756d47a907f91 100644 (file)
 
 #if ENABLE(SVG) && ENABLE(CSS_FILTERS)
 #include "CachedResourceHandle.h"
-#include "CachedSVGDocument.h"
+#include "CachedSVGDocumentClient.h"
 
 namespace WebCore {
 
+class CachedSVGDocument;
+
 class CachedSVGDocumentReference : public CachedSVGDocumentClient {
 public:
-    CachedSVGDocumentReference(CachedSVGDocument* document) : m_document(document) { m_document->addClient(this); }
-    virtual ~CachedSVGDocumentReference() { m_document->removeClient(this); }
+    CachedSVGDocumentReference(CachedSVGDocument*);
+    virtual ~CachedSVGDocumentReference();
     CachedSVGDocument* document() { return m_document.get(); }
 private:
     CachedResourceHandle<CachedSVGDocument> m_document;
index 4c875308ab8b4dbe9e08a66710bf1f899ea541ad..0674b0d058e27558e9c3bd10a6e3eb715813c380 100644 (file)
@@ -31,6 +31,7 @@
 
 namespace WebCore {
 class CachedCSSStyleSheet;
+class KURL;
 
 class CachedStyleSheetClient : public CachedResourceClient {
 public:
index 2373c6ee82ebee02e4aa422d567d9be220f83315..087ca8ac9365110df442d9ce9fb315501361d6a7 100644 (file)
 #include "config.h"
 #include "MemoryCache.h"
 
-#include "CachedCSSStyleSheet.h"
-#include "CachedFont.h"
-#include "CachedImage.h"
-#include "CachedScript.h"
-#include "CachedXSLStyleSheet.h"
-#include "CachedResourceLoader.h"
+#include "CachedResource.h"
 #include "CrossThreadTask.h"
 #include "Document.h"
 #include "FrameLoader.h"
@@ -37,7 +32,6 @@
 #include "Image.h"
 #include "Logging.h"
 #include "PublicSuffix.h"
-#include "ResourceHandle.h"
 #include "SecurityOrigin.h"
 #include "SecurityOriginHash.h"
 #include "WebCoreMemoryInstrumentation.h"
index f5f525fc57af6c3a5304aa67b65338a9ebafa011..9c2cc5e67b6fad5318e79ebb9e136f9b763f5e30 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef Cache_h
 #define Cache_h
 
-#include "CachedResource.h"
 #include "SecurityOriginHash.h"
 #include <wtf/HashMap.h>
 #include <wtf/HashSet.h>
@@ -40,8 +39,11 @@ class CachedCSSStyleSheet;
 class CachedResource;
 class CachedResourceLoader;
 class KURL;
+class ResourceRequest;
+class ResourceResponse;
 class ScriptExecutionContext;
 class SecurityOrigin;
+struct CrossThreadResourceRequestData;
 struct SecurityOriginHash;
 
 // This cache holds subresources used by Web pages: images, scripts, stylesheets, etc.
@@ -204,7 +206,7 @@ private:
     void evict(CachedResource*);
 
     static void removeRequestFromCacheImpl(ScriptExecutionContext*, const ResourceRequest&);
-    static void crossThreadRemoveRequestFromCache(ScriptExecutionContext*, PassOwnPtr<WebCore::CrossThreadResourceRequestData>);
+    static void crossThreadRemoveRequestFromCache(ScriptExecutionContext*, PassOwnPtr<CrossThreadResourceRequestData>);
 
     bool m_disabled;  // Whether or not the cache is enabled.
     bool m_pruneEnabled;
index eae68900b0046cbfaf408427a7b895181931905c..ae3851580e9f9bad09dbb246502a7e79b2669673 100644 (file)
@@ -31,6 +31,7 @@
 #include "config.h"
 #include "CachedRawResource.h"
 
+#include "CachedRawResourceClient.h"
 #include "CachedResourceClient.h"
 #include "CachedResourceClientWalker.h"
 
index 74faa959cabe34481a0f579f7e5240822e013804..436a97c6d066f16166652dea6f45746b29e176e3 100644 (file)
@@ -38,6 +38,7 @@
 #include "Document.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "IconDatabase.h"
 #include "IconDatabaseBase.h"
index 65e8bd52f27042135c5ac7831a574de2ddea9dc4..95fd5a41d64d9dea2a8a35555033cb367d6c447b 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef IconLoader_h
 #define IconLoader_h
 
-#include "CachedRawResource.h"
+#include "CachedRawResourceClient.h"
 #include "CachedResourceHandle.h"
 #include <wtf/Forward.h>
 #include <wtf/Noncopyable.h>
index c16b8f7f1ee46ca0d51414d075c82b473f9f7e2e..2c33b08d34c77ce28a2b6633fffa518822bd9c67 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "FrameLoader.h"
 #include "FrameLoaderClient.h"
-#include "ResourceHandle.h"
 
 #if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
 #include "InspectorInstrumentation.h"
index e475538b20a6db50d851597e1053f831cc7404b2..0b0779e6b493296091074155b505d07c5bce974d 100644 (file)
@@ -29,6 +29,7 @@
 #include "DOMWindow.h"
 #include "DOMWrapperWorld.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 
 namespace WebCore {
index 2dd306e0492ad137041bca2ecca642aa62639241..b86286cc3ac235e7513153290a41ac321acf7200 100644 (file)
@@ -27,6 +27,7 @@
 #include "DragController.h"
 
 #if ENABLE(DRAG_SUPPORT)
+#include "CachedImage.h"
 #include "Clipboard.h"
 #include "ClipboardAccessPolicy.h"
 #include "CachedResourceLoader.h"
index 5d06cacfb7b4070778d2e21f2e76d14f0b73209a..6449c48a7149edd7bc7d894a951311b388321f61 100644 (file)
@@ -41,6 +41,7 @@
 #include "CachedResourceLoader.h"
 #include "DocumentType.h"
 #include "EditorClient.h"
+#include "Event.h"
 #include "EventNames.h"
 #include "FloatQuad.h"
 #include "FocusController.h"
@@ -91,6 +92,7 @@
 #include "markup.h"
 #include "npruntime_impl.h"
 #include "visible_units.h"
+#include <wtf/PassOwnPtr.h>
 #include <wtf/RefCountedLeakCounter.h>
 #include <wtf/StdLibExtras.h>
 
@@ -150,7 +152,7 @@ static inline float parentTextZoomFactor(Frame* frame)
 inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient* frameLoaderClient)
     : m_page(page)
     , m_treeNode(this, parentFromOwnerElement(ownerElement))
-    , m_loader(this, frameLoaderClient)
+    , m_loader(adoptPtr(new FrameLoader(this, frameLoaderClient)))
     , m_navigationScheduler(this)
     , m_ownerElement(ownerElement)
     , m_script(this)
@@ -206,6 +208,11 @@ PassRefPtr<Frame> Frame::create(Page* page, HTMLFrameOwnerElement* ownerElement,
     return frame.release();
 }
 
+void Frame::init()
+{
+    m_loader->init();
+}
+
 Frame::~Frame()
 {
     setView(0);
@@ -673,7 +680,7 @@ void Frame::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
     info.ignoreMember(m_view);
     info.addMember(m_ownerElement, "ownerElement");
     info.addMember(m_page, "page");
-    info.addMember(m_loader, "loader");
+    info.addMember(*m_loader, "loader");
     info.ignoreMember(m_destructionObservers);
 }
 
index 7053eb24098771807f8c449ffdc808625763597e..4dad1de8f0c1860ea4503a7dec5f3355e8b4e70d 100644 (file)
@@ -33,7 +33,7 @@
 #include "DragImage.h"
 #include "Editor.h"
 #include "EventHandler.h"
-#include "FrameLoader.h"
+#include "FrameLoaderClient.h"
 #include "FrameSelection.h"
 #include "FrameTree.h"
 #include "NavigationScheduler.h"
@@ -64,6 +64,7 @@ namespace WebCore {
 
     class Document;
     class FrameDestructionObserver;
+    class FrameLoader;
     class FrameView;
     class HTMLTableCellElement;
     class RegularExpression;
@@ -215,7 +216,7 @@ namespace WebCore {
 
         Page* m_page;
         mutable FrameTree m_treeNode;
-        mutable FrameLoader m_loader;
+        mutable OwnPtr<FrameLoader> m_loader;
         mutable NavigationScheduler m_navigationScheduler;
 
         HTMLFrameOwnerElement* m_ownerElement;
@@ -260,14 +261,9 @@ namespace WebCore {
         int m_activeDOMObjectsAndAnimationsSuspendedCount;
     };
 
-    inline void Frame::init()
-    {
-        m_loader.init();
-    }
-
     inline FrameLoader* Frame::loader() const
     {
-        return &m_loader;
+        return m_loader.get();
     }
 
     inline NavigationScheduler* Frame::navigationScheduler() const
index d764b620bd5c27b0a7c63caa6665d73f9b816c12..0b5a430423d3e8b0a437256121950961824cb9c5 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "DocumentLoader.h"
 #include "Frame.h"
-#include "FrameLoaderTypes.h"
+#include "FrameLoader.h"
 
 namespace WebCore {
 
index 4a0c0bd7468fc05f6ad83aa8d083775014fe1487..4f992a854ff42f8b1a7aa8c9e8db372620f45872 100644 (file)
@@ -38,6 +38,7 @@
 #include "DocumentLoader.h"
 #include "DocumentTiming.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "ResourceLoadTiming.h"
 #include "ResourceResponse.h"
 #include <wtf/CurrentTime.h>
index d652e4f87caf4f869d6bff02328f4298d4e63c00..2c1efb6cdefe0dec1d274b80d2fa3c880a859f82 100644 (file)
@@ -28,6 +28,7 @@
 #include "Chrome.h"
 #include "ChromeClient.h"
 #include "Element.h"
+#include "Event.h"
 #include "Page.h"
 #include "PlatformMouseEvent.h"
 #include "VoidCallback.h"
index cd55b49ef0909b7a23a50475083e53db7339a04a..c0a0033c45b89a3898e44e35b4f9d38186c8f527 100644 (file)
@@ -40,7 +40,6 @@
 #include "InspectorInstrumentation.h"
 #include "Page.h"
 #include "PageCache.h"
-#include "ResourceHandle.h"
 #include "StorageMap.h"
 #include "TextAutosizer.h"
 #include <limits>
index 019f5438c6a6549249fc2a773a9086845e8f061d..7ed880dcfaad6e3d4012170c06eaf6af2ac77d57 100644 (file)
@@ -36,6 +36,7 @@
 #include "CSSImageValue.h"
 #include "CSSPrimitiveValue.h"
 #include "CSSPropertyNames.h"
+#include "CachedImage.h"
 #include "ClipPathOperation.h"
 #include "FloatConversion.h"
 #include "IdentityTransformOperation.h"
index a7f36350485118ec9c83cacac31c805430882e2d..7609663ede8ea0bcab8ea4de27653318978888c6 100644 (file)
@@ -31,6 +31,7 @@
 #include "config.h"
 #include "Pasteboard.h"
 
+#include "CachedImage.h"
 #include "ClipboardChromium.h"
 #include "ClipboardUtilitiesChromium.h"
 #include "Document.h"
index 106f8776eaa6bd780388f627386a36976d07a49f..e6bdef2e8be1f546778ce762ce10e101b5aafaf1 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "PrintContext.h"
 #include "ResourceError.h"
 #include "ResourceRequest.h"
index c8b64167ea66fe602e7783a7d0d7fc083a5532b5..efe6b255e24b72fe619c451c77a5a5ee1a9e10bd 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "MediaPlayerPrivateAVFoundation.h"
 
-#include "DocumentLoader.h"
 #include "Frame.h"
 #include "FrameView.h"
 #include "GraphicsContext.h"
index 9d4eb643ec7c697c307f0fec3381ea985c529ee5..c05f160d190551a0a0784d329cb444e8ad47d872 100644 (file)
@@ -29,6 +29,7 @@
 #if ENABLE(VIDEO) && USE(AVFOUNDATION)
 
 #include "MediaPlayerPrivateAVFoundation.h"
+#include <objc/objc.h>
 #include <wtf/HashMap.h>
 
 OBJC_CLASS AVURLAsset;
index 656926e28e357d611e11d639090892ca6bd6c513..0f367b05457f19229fb791e64e606b9c598dacdf 100644 (file)
@@ -29,6 +29,7 @@
 #include "FilterOperation.h"
 
 #include "AnimationUtilities.h"
+#include "CachedSVGDocumentReference.h"
 
 namespace WebCore {
 
@@ -149,6 +150,24 @@ PassRefPtr<FilterOperation> DropShadowFilterOperation::blend(const FilterOperati
         WebCore::blend(fromColor, m_color, progress), m_type);
 }
 
+ReferenceFilterOperation::ReferenceFilterOperation(const String& url, const String& fragment, OperationType type)
+    : FilterOperation(type)
+    , m_url(url)
+    , m_fragment(fragment)
+{
+}
+
+ReferenceFilterOperation::~ReferenceFilterOperation()
+{
+}
+
+#if ENABLE(SVG)
+void ReferenceFilterOperation::setCachedSVGDocumentReference(PassOwnPtr<CachedSVGDocumentReference> cachedSVGDocumentReference)
+{
+    m_cachedSVGDocumentReference = cachedSVGDocumentReference;
+}
+#endif
+
 } // namespace WebCore
 
 #endif // ENABLE(CSS_FILTERS)
index fb9b67619892ad2d2f2ad03fc00716e62ed6cb44..9c1580e199c6d651bd306bce28ce9c756d76e3ad 100644 (file)
 #include <wtf/ThreadSafeRefCounted.h>
 #endif
 
-#if ENABLE(SVG)
-#include "CachedSVGDocumentReference.h"
-#endif
-
 // Annoyingly, wingdi.h #defines this.
 #ifdef PASSTHROUGH
 #undef PASSTHROUGH
@@ -52,6 +48,8 @@
 
 namespace WebCore {
 
+class CachedSVGDocumentReference;
+
 // CSS Filters
 
 #if PLATFORM(BLACKBERRY)
@@ -175,7 +173,7 @@ public:
 
 #if ENABLE(SVG)
     CachedSVGDocumentReference* cachedSVGDocumentReference() const { return m_cachedSVGDocumentReference.get(); }
-    void setCachedSVGDocumentReference(PassOwnPtr<CachedSVGDocumentReference> cachedSVGDocumentReference) { m_cachedSVGDocumentReference = cachedSVGDocumentReference; }
+    void setCachedSVGDocumentReference(PassOwnPtr<CachedSVGDocumentReference>);
 #endif
 
     FilterEffect* filterEffect() const { return m_filterEffect.get(); }
@@ -191,12 +189,9 @@ private:
         return m_url == other->m_url;
     }
 
-    ReferenceFilterOperation(const String& url, const String& fragment, OperationType type)
-        : FilterOperation(type)
-        , m_url(url)
-        , m_fragment(fragment)
-    {
-    }
+    ReferenceFilterOperation(const String& url, const String& fragment, OperationType);
+
+    virtual ~ReferenceFilterOperation();
 
     String m_url;
     String m_fragment;
index af9d6e244ce69b2886377a967dc2ba06d1d45b69..fcebb3d038ce651ecb55c99ffe1b55dcf9e06780 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "Document.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "GRefPtrGStreamer.h"
 #include "GStreamerVersioning.h"
 #include "MediaPlayer.h"
index 754d55e769151edc1d41156a432ca7597814baf1..3153d2470037e0dab5f78e13e895fc6ed2eb78d7 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "PrintContext.h"
 #include "ResourceError.h"
 #include "ResourceRequest.h"
index 7a7a3f979950afd8a68da4c015f3189494c31b98..d6d867e917aca707d4ea8b37f77c1f016a25bc33 100644 (file)
@@ -20,6 +20,7 @@
 #include "config.h"
 #include "Pasteboard.h"
 
+#include "CachedImage.h"
 #include "ClipboardGtk.h"
 #include "DataObjectGtk.h"
 #include "DocumentFragment.h"
index 4238f80dd81fce6f74f9ed256741c46bf87d895b..bb4e62f6b26877bba5965690566b6ebc407b42e6 100644 (file)
@@ -26,6 +26,7 @@
 #define PasteboardHelper_h
 
 #include "Frame.h"
+#include <glib-object.h>
 
 namespace WebCore {
 
index 305a92ff98b21eb5d3c1b2bc0164f391c722809c..df351372434624fa2be4076641cad44701d5d911 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef ClipboardMac_h
 #define ClipboardMac_h
 
-#include "CachedImage.h"
 #include "CachedImageClient.h"
 #include "Clipboard.h"
 #include <wtf/RetainPtr.h>
index 0107732a9c29b2c7a09cc27630f9055024ff4144..a5b29d99f828d9845c3b7f17c87ba56aaebe42e1 100644 (file)
@@ -26,6 +26,7 @@
 #import "config.h"
 #import "ClipboardMac.h"
 
+#import "CachedImage.h"
 #import "CachedImageClient.h"
 #import "DOMElementInternal.h"
 #import "DragClient.h"
index 7590f88345a491d46b11e9127175dea3fa07170c..76481f58549d37742807501904dc39be58feb777 100644 (file)
@@ -27,6 +27,7 @@
 #import "HTMLConverter.h"
 
 #import "ArchiveResource.h"
+#import "CachedImage.h"
 #import "ColorMac.h"
 #import "Document.h"
 #import "DocumentLoader.h"
@@ -38,6 +39,7 @@
 #import "Element.h"
 #import "Font.h"
 #import "Frame.h"
+#import "FrameLoader.h"
 #import "HTMLNames.h"
 #import "HTMLParserIdioms.h"
 #import "LoaderNSURLExtras.h"
index 5c934e30af29b3abbaa85d4d01575eb136e2d4af..799bc6990792ddad37638168e37aa2be85a632c6 100644 (file)
@@ -26,7 +26,7 @@
 #import "config.h"
 #import "Pasteboard.h"
 
-#import "CachedResource.h"
+#import "CachedImage.h"
 #import "ClipboardMac.h"
 #import "DOMRangeInternal.h"
 #import "Document.h"
 #import "ExceptionCodePlaceholder.h"
 #import "Frame.h"
 #import "FrameView.h"
+#import "FrameLoader.h"
 #import "FrameLoaderClient.h"
 #import "HitTestResult.h"
 #import "HTMLAnchorElement.h"
 #import "HTMLConverter.h"
-#import "htmlediting.h"
 #import "HTMLNames.h"
+#import "htmlediting.h"
 #import "Image.h"
 #import "KURL.h"
 #import "LegacyWebArchive.h"
index df80441be3bc1489feed504c74fa785397e940f9..77bfccd334ffe4390a8cfba5ee587036f01f6341 100644 (file)
@@ -25,8 +25,6 @@
 #include "config.h"
 #include "AuthenticationChallenge.h"
 
-#include "ResourceHandle.h"
-
 namespace WebCore {
 
 AuthenticationChallengeBase::AuthenticationChallengeBase()
index 0db772cf6748b48e525b970c7c1a82afd7e3fc66..9a1980a80ff7f5357d488435b92c3fc542e71307 100644 (file)
@@ -31,7 +31,6 @@
 #include "Cookie.h"
 #include "KURL.h"
 #include "NetworkStorageSession.h"
-#include "ResourceHandle.h"
 #include "SoftLinking.h"
 #include <CFNetwork/CFHTTPCookiesPriv.h>
 #include <CoreFoundation/CoreFoundation.h>
index ac081c766e9627645d9ba088aad4934cc49bb741..3b55cced73225df59160b95a89ab17857309c1da 100644 (file)
@@ -26,7 +26,6 @@
 #include "config.h"
 #include "ResourceRequestCFNet.h"
 
-#include "ResourceHandle.h"
 #include "ResourceRequest.h"
 
 #if USE(CFNETWORK)
index 6126271e72db17f225f1a1555583cc7cdc95a3ef..bdead3149fee0c2da36f5a1bfe2662b6709ee89c 100644 (file)
@@ -26,8 +26,6 @@
 #include "config.h"
 #include "CookieStorage.h"
 
-#import "ResourceHandle.h"
-
 #import "WebCoreSystemInterface.h"
 #import <wtf/RetainPtr.h>
 #import <wtf/UnusedParam.h>
index b44aa82ced549bf3775debe903ee28777bf156a8..547b69a0dd4c1cbd79e5462d82790f768e1af32e 100644 (file)
@@ -28,6 +28,7 @@
 #include "config.h"
 #include "Pasteboard.h"
 
+#include "CachedImage.h"
 #include "ClipboardQt.h"
 #include "DocumentFragment.h"
 #include "Editor.h"
index f906c1b1a0714d1d465bcb6633ded40c25905820..2a4962952ad5158750223d2fe6c2bd639eff47be 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "DOMPlugin.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "Page.h"
 #include "PluginData.h"
diff --git a/Source/WebCore/plugins/PluginRequest.h b/Source/WebCore/plugins/PluginRequest.h
new file mode 100644 (file)
index 0000000..9c1b30d
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2008 Collabora Ltd. All rights reserved.
+ * Copyright (C) 2009 Girish Ramakrishnan <girish@forwardbias.in>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#ifndef PluginRequest_h
+#define PluginRequest_h
+
+#include "FrameLoadRequest.h"
+
+namespace WebCore {
+
+class PluginRequest {
+    WTF_MAKE_NONCOPYABLE(PluginRequest); WTF_MAKE_FAST_ALLOCATED;
+public:
+    PluginRequest(const FrameLoadRequest& frameLoadRequest, bool sendNotification, void* notifyData, bool shouldAllowPopups)
+        : m_frameLoadRequest(frameLoadRequest)
+        , m_notifyData(notifyData)
+        , m_sendNotification(sendNotification)
+        , m_shouldAllowPopups(shouldAllowPopups)
+    {
+    }
+
+public:
+    const FrameLoadRequest& frameLoadRequest() const { return m_frameLoadRequest; }
+    void* notifyData() const { return m_notifyData; }
+    bool sendNotification() const { return m_sendNotification; }
+    bool shouldAllowPopups() const { return m_shouldAllowPopups; }
+
+private:
+    FrameLoadRequest m_frameLoadRequest;
+    void* m_notifyData;
+    bool m_sendNotification;
+    bool m_shouldAllowPopups;
+};
+
+} // namespace WebCore
+
+#endif
index 55d1702bf9b59ccab475ec5d3c32fd9d68cfed7d..17ddbb1cef81e573ed40fa66ca3c7a8fed38fdab 100644 (file)
@@ -31,6 +31,7 @@
 #include "KURL.h"
 #include "NetscapePlugInStreamLoader.h"
 #include "PluginQuirkSet.h"
+#include "PluginStreamClient.h"
 #include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "Timer.h"
@@ -49,12 +50,6 @@ namespace WebCore {
 
     enum PluginStreamState { StreamBeforeStarted, StreamStarted, StreamStopped };
 
-    class PluginStreamClient {
-    public:
-        virtual ~PluginStreamClient() {}
-        virtual void streamDidFinishLoading(PluginStream*) {}
-    };
-
     class PluginStream : public RefCounted<PluginStream>, private NetscapePlugInStreamLoaderClient {
     public:
         static PassRefPtr<PluginStream> create(PluginStreamClient* client, Frame* frame, const ResourceRequest& request, bool sendNotification, void* notifyData, const NPPluginFuncs* functions, NPP instance, const PluginQuirkSet& quirks)
diff --git a/Source/WebCore/plugins/PluginStreamClient.h b/Source/WebCore/plugins/PluginStreamClient.h
new file mode 100644 (file)
index 0000000..a7e6102
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2006, 2007, 2008, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2008 Collabora, Ltd. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#ifndef PluginStreamClient_h
+#define PluginStreamClient_h
+
+namespace WebCore {
+
+class PluginStream;
+
+class PluginStreamClient {
+public:
+    virtual ~PluginStreamClient() { }
+    virtual void streamDidFinishLoading(PluginStream*) { }
+};
+
+} // namespace WebCore
+
+#endif
index af0576f0e90a0a31efbf759f61201ef421e41578..126bbbdcae042c4428ff81151e2dd1478acdcaf6 100644 (file)
@@ -38,6 +38,7 @@
 #include "Element.h"
 #include "FocusController.h"
 #include "Frame.h"
+#include "FrameLoadRequest.h"
 #include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameTree.h"
@@ -56,6 +57,8 @@
 #include "PluginDebug.h"
 #include "PluginMainThreadScheduler.h"
 #include "PluginPackage.h"
+#include "PluginRequest.h"
+#include "PluginStream.h"
 #include "ProxyServer.h"
 #include "RenderBox.h"
 #include "RenderObject.h"
index b3334807d50917d21c355737422dee1b4877fdb1..5692ccd3fbb9c8f768095af563a24884c060ee31 100644 (file)
 #ifndef PluginView_h
 #define PluginView_h
 
-#include "FrameLoadRequest.h"
 #include "IntRect.h"
+#include "KURL.h"
 #include "MediaCanStartListener.h"
 #include "PluginViewBase.h"
-#include "ResourceRequest.h"
 #include "Timer.h"
 #include <wtf/HashMap.h>
 #include <wtf/HashSet.h>
@@ -43,7 +42,7 @@
 #include <wtf/text/CString.h>
 
 #if ENABLE(NETSCAPE_PLUGIN_API)
-#include "PluginStream.h"
+#include "PluginStreamClient.h"
 #include "npruntime_internal.h"
 #endif
 
@@ -84,12 +83,12 @@ namespace JSC {
 #endif
 
 namespace WebCore {
+
     class Frame;
     class Image;
     class HTMLPlugInElement;
     class KeyboardEvent;
     class MouseEvent;
-    class KURL;
 #if OS(WINDOWS) && ENABLE(NETSCAPE_PLUGIN_API)
     class PluginMessageThrottlerWin;
 #endif
@@ -99,6 +98,7 @@ namespace WebCore {
     class ResourceError;
     class ResourceResponse;
     class WheelEvent;
+    struct FrameLoadRequest;
 
     enum PluginStatus {
         PluginStatusCanNotFindPlugin,
@@ -106,26 +106,6 @@ namespace WebCore {
         PluginStatusLoadedSuccessfully
     };
 
-    class PluginRequest {
-        WTF_MAKE_NONCOPYABLE(PluginRequest); WTF_MAKE_FAST_ALLOCATED;
-    public:
-        PluginRequest(const FrameLoadRequest& frameLoadRequest, bool sendNotification, void* notifyData, bool shouldAllowPopups)
-            : m_frameLoadRequest(frameLoadRequest)
-            , m_notifyData(notifyData)
-            , m_sendNotification(sendNotification)
-            , m_shouldAllowPopups(shouldAllowPopups) { }
-    public:
-        const FrameLoadRequest& frameLoadRequest() const { return m_frameLoadRequest; }
-        void* notifyData() const { return m_notifyData; }
-        bool sendNotification() const { return m_sendNotification; }
-        bool shouldAllowPopups() const { return m_shouldAllowPopups; }
-    private:
-        FrameLoadRequest m_frameLoadRequest;
-        void* m_notifyData;
-        bool m_sendNotification;
-        bool m_shouldAllowPopups;
-    };
-
     class PluginManualLoader {
     public:
         virtual ~PluginManualLoader() {}
index a5fe3a01057f5855266ccf76c9dc47873c1ff4a9..0e2f2bae58137a95db1f009ac55dff3d9eb75732 100644 (file)
@@ -22,6 +22,7 @@
 #include "config.h"
 #include "HitTestResult.h"
 
+#include "CachedImage.h"
 #include "DocumentMarkerController.h"
 #include "Frame.h"
 #include "FrameSelection.h"
index 305bc7b79510d448ac233c8f93d54e3dfcbedcee..d020dc62da1005feed39eea7f9d4b64e170a2b9f 100644 (file)
@@ -20,7 +20,6 @@
 #include "config.h"
 #include "InlineFlowBox.h"
 
-#include "CachedImage.h"
 #include "CSSPropertyNames.h"
 #include "Document.h"
 #include "EllipsisBox.h"
index e7c95cb732686761be94715be66b40647c498948..befef4dda9941461cbb831b0391baf509e937e87 100644 (file)
@@ -25,7 +25,6 @@
 #include "config.h"
 #include "RenderBox.h"
 
-#include "CachedImage.h"
 #include "Chrome.h"
 #include "ChromeClient.h"
 #include "Document.h"
index aabe76ccfad95d98b4c9145cf595e0661e66e6aa..1409011c2d66f0d129674bf97341847036d3ebed 100644 (file)
@@ -31,7 +31,6 @@
 #include "Font.h"
 #include "FontSelector.h"
 #include "Frame.h"
-#include "FrameLoaderClient.h"
 #include "GraphicsContext.h"
 #include "HTMLEmbedElement.h"
 #include "HTMLIFrameElement.h"
index cab3e449e9aad18eaf43f866116f8026ee86087a..61cb5916d384f24518b4ba660b5ad1baacf80f07 100644 (file)
@@ -29,6 +29,7 @@
 #include "RenderImage.h"
 
 #include "BitmapImage.h"
+#include "CachedImage.h"
 #include "Font.h"
 #include "FontCache.h"
 #include "Frame.h"
index 0c3a79e457becae76aeae6147e9a1b3e27dbbbbc..bacb1edc8b0035e4e8d01cd3c9235981dac5f933 100644 (file)
@@ -28,6 +28,7 @@
 #include "config.h"
 #include "RenderImageResource.h"
 
+#include "CachedImage.h"
 #include "Image.h"
 #include "RenderImageResourceStyleImage.h"
 #include "RenderObject.h"
@@ -36,7 +37,6 @@ namespace WebCore {
 
 RenderImageResource::RenderImageResource()
     : m_renderer(0)
-    , m_cachedImage(0)
 {
 }
 
@@ -89,6 +89,16 @@ void RenderImageResource::resetAnimation()
         m_renderer->repaint();
 }
 
+PassRefPtr<Image> RenderImageResource::image(int, int) const
+{
+    return m_cachedImage ? m_cachedImage->imageForRenderer(m_renderer) : nullImage();
+}
+
+bool RenderImageResource::errorOccurred() const
+{
+    return m_cachedImage && m_cachedImage->errorOccurred();
+}
+
 void RenderImageResource::setContainerSizeForRenderer(const IntSize& imageContainerSize)
 {
     ASSERT(m_renderer);
@@ -96,6 +106,26 @@ void RenderImageResource::setContainerSizeForRenderer(const IntSize& imageContai
         m_cachedImage->setContainerSizeForRenderer(m_renderer, imageContainerSize, m_renderer->style()->effectiveZoom());
 }
 
+bool RenderImageResource::usesImageContainerSize() const
+{
+    return m_cachedImage ? m_cachedImage->usesImageContainerSize() : false;
+}
+
+bool RenderImageResource::imageHasRelativeWidth() const
+{
+    return m_cachedImage ? m_cachedImage->imageHasRelativeWidth() : false;
+}
+
+bool RenderImageResource::imageHasRelativeHeight() const
+{
+    return m_cachedImage ? m_cachedImage->imageHasRelativeHeight() : false;
+}
+
+LayoutSize RenderImageResource::imageSize(float multiplier) const
+{
+    return m_cachedImage ? m_cachedImage->imageSizeForRenderer(m_renderer, multiplier) : LayoutSize();
+}
+
 Image* RenderImageResource::nullImage()
 {
     return Image::nullImage();
index 4bc6e973aa571ac271b86e1c999493ba20c1a83d..28dbd31a8dbc3c0e57f9943cecd2e58e2ee8af07 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef RenderImageResource_h
 #define RenderImageResource_h
 
-#include "CachedImage.h"
 #include "CachedResourceHandle.h"
 #include "Image.h"
 #include "LayoutSize.h"
@@ -55,15 +54,15 @@ public:
 
     void resetAnimation();
 
-    virtual PassRefPtr<Image> image(int /* width */ = 0, int /* height */ = 0) const { return m_cachedImage ? m_cachedImage->imageForRenderer(m_renderer) : nullImage(); }
-    virtual bool errorOccurred() const { return m_cachedImage && m_cachedImage->errorOccurred(); }
+    virtual PassRefPtr<Image> image(int width = 0, int height = 0) const;
+    virtual bool errorOccurred() const;
 
     virtual void setContainerSizeForRenderer(const IntSize&);
-    virtual bool usesImageContainerSize() const { return m_cachedImage ? m_cachedImage->usesImageContainerSize() : false; }
-    virtual bool imageHasRelativeWidth() const { return m_cachedImage ? m_cachedImage->imageHasRelativeWidth() : false; }
-    virtual bool imageHasRelativeHeight() const { return m_cachedImage ? m_cachedImage->imageHasRelativeHeight() : false; }
+    virtual bool usesImageContainerSize() const;
+    virtual bool imageHasRelativeWidth() const;
+    virtual bool imageHasRelativeHeight() const;
 
-    virtual LayoutSize imageSize(float multiplier) const { return m_cachedImage ? m_cachedImage->imageSizeForRenderer(m_renderer, multiplier) : LayoutSize(); }
+    virtual LayoutSize imageSize(float multiplier) const;
 
     virtual WrappedImagePtr imagePtr() const { return m_cachedImage.get(); }
 
index ddb13447e2c07d58ad21091d0e5935fba3f7a55e..51cd809637b5f3f7a6a2e43e9c6f115e84063bb0 100644 (file)
@@ -28,6 +28,7 @@
 #include "config.h"
 #include "RenderImageResourceStyleImage.h"
 
+#include "CachedImage.h"
 #include "RenderObject.h"
 #include "StyleCachedImage.h"
 
index 8a0e0c678eb8b872a93ff73e49a0f3e21a190963..fcad75a2920ac2ed6f84f4517cc2dcf9f0a397a7 100644 (file)
@@ -60,6 +60,7 @@
 #include "FloatRect.h"
 #include "FocusController.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "FrameSelection.h"
 #include "FrameTree.h"
index 917eb1e78df19f8e44e2b5275b6f74595f279662..a8052f3fbee92253f81d338919a1e3340273e7d0 100644 (file)
@@ -32,6 +32,7 @@
 #include "AnimationController.h"
 #include "CanvasRenderingContext.h"
 #include "CSSPropertyNames.h"
+#include "CachedImage.h"
 #include "Chrome.h"
 #include "FontCache.h"
 #include "FrameView.h"
index e514a5a21efd4038da38d4456332c697abe7a936..80ac3fbef9b89cff36490ac0c43a5418e4e765db 100644 (file)
 
 #if ENABLE(CSS_FILTERS)
 
-#if ENABLE(SVG)
-#include "CachedSVGDocument.h"
-#endif
-#include "FilterOperation.h"
+#include "CachedResourceHandle.h"
+#include "CachedSVGDocumentClient.h"
 #include "LayoutRect.h"
 #include <wtf/HashMap.h>
 #include <wtf/PassRefPtr.h>
@@ -47,6 +45,8 @@
 
 namespace WebCore {
 
+class CachedSVGDocument;
+class Element;
 class FilterEffectRenderer;
 class FilterOperations;
 class RenderLayer;
index bfc62b1c9a9edc0fff9b5b9386577a2d6982483c..429f919b4a0901d25d9450f25c942a7c5f42a5eb 100644 (file)
@@ -24,7 +24,6 @@
 #include "config.h"
 #include "RenderListItem.h"
 
-#include "CachedImage.h"
 #include "HTMLNames.h"
 #include "HTMLOListElement.h"
 #include "RenderListMarker.h"
index cd21cea8867cdfef7633e1961af480767cb2174b..56a2e4a29ac90956dae624b08ad232cc7386a987 100644 (file)
@@ -25,7 +25,6 @@
 #include "config.h"
 #include "RenderListMarker.h"
 
-#include "CachedImage.h"
 #include "Document.h"
 #include "Font.h"
 #include "GraphicsContext.h"
index dadbb9240a7c34e0cbb74c9fd7ae15b50bcfc27c..838f57a10f3683cc4d0c2335c2d69201317b598d 100644 (file)
 #include "config.h"
 #include "RenderSnapshottedPlugIn.h"
 
+#include "CachedImage.h"
 #include "Chrome.h"
 #include "ChromeClient.h"
 #include "Cursor.h"
 #include "FEGaussianBlur.h"
 #include "Filter.h"
-#include "FrameLoaderClient.h"
 #include "FrameView.h"
 #include "Gradient.h"
 #include "HTMLPlugInImageElement.h"
index 4d70e4284aaf539883039ba62ba4afb53edde085..700fe6048ded4b32f282bcf62a987ff0e2ce2e1e 100644 (file)
@@ -26,7 +26,6 @@
 #include "config.h"
 #include "RenderTableCol.h"
 
-#include "CachedImage.h"
 #include "HTMLNames.h"
 #include "HTMLTableColElement.h"
 #include "RenderTable.h"
index 93c384ccdd7126190b0826eae5c0e8eede23b7e9..1ed43505b2eccb2194eb53b48a88354fbbde799e 100644 (file)
@@ -25,7 +25,6 @@
 #include "config.h"
 #include "RenderTableRow.h"
 
-#include "CachedImage.h"
 #include "Document.h"
 #include "HTMLNames.h"
 #include "HitTestResult.h"
index 46e7f574b26f4b76329c66b045f96149c5606e49..5b08925f60397e44b9c4f14b855f3e1fae809abf 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "config.h"
 #include "RenderTableSection.h"
-#include "CachedImage.h"
 #include "Document.h"
 #include "HitTestResult.h"
 #include "HTMLNames.h"
index c2e007756dce3426efa0910b9c3c839f9fe4caa8..15234295bb2d35e2f373edd87da4c20f59e3246a 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "CachedResourceHandle.h"
 #include "StyleShader.h"
+#include <wtf/PassRefPtr.h>
 
 namespace WebCore {
 
diff --git a/Source/WebCore/rendering/style/StyleCustomFilterProgram.cpp b/Source/WebCore/rendering/style/StyleCustomFilterProgram.cpp
new file mode 100644 (file)
index 0000000..c02e8dc
--- /dev/null
@@ -0,0 +1,101 @@
+/*
+ * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above
+ *    copyright notice, this list of conditions and the following
+ *    disclaimer.
+ * 2. Redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the following
+ *    disclaimer in the documentation and/or other materials
+ *    provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+ * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "StyleCustomFilterProgram.h"
+
+#if ENABLE(CSS_SHADERS)
+
+#include "CachedShader.h"
+
+namespace WebCore {
+
+String StyleCustomFilterProgram::vertexShaderString() const
+{
+    ASSERT(isLoaded());
+    return m_cachedVertexShader ? m_cachedVertexShader->shaderString() : String();
+}
+
+String StyleCustomFilterProgram::fragmentShaderString() const
+{
+    ASSERT(isLoaded());
+    return m_cachedFragmentShader ? m_cachedFragmentShader->shaderString() : String();
+}
+
+bool StyleCustomFilterProgram::isLoaded() const
+{
+    // Do not use the CachedResource:isLoaded method here, because it actually means !isLoading(),
+    // so missing and canceled resources will have isLoaded set to true, even if they are not loaded yet.
+    return (!m_cachedVertexShader || m_isVertexShaderLoaded)
+        && (!m_cachedFragmentShader || m_isFragmentShaderLoaded);
+}
+
+void StyleCustomFilterProgram::willHaveClients()
+{
+    if (m_vertexShader) {
+        m_cachedVertexShader = m_vertexShader->cachedShader();
+        m_cachedVertexShader->addClient(this);
+    }
+    if (m_fragmentShader) {
+        m_cachedFragmentShader = m_fragmentShader->cachedShader();
+        m_cachedFragmentShader->addClient(this);
+    }
+}
+
+void StyleCustomFilterProgram::didRemoveLastClient()
+{
+    if (m_cachedVertexShader) {
+        m_cachedVertexShader->removeClient(this);
+        m_cachedVertexShader = 0;
+        m_isVertexShaderLoaded = false;
+    }
+    if (m_cachedFragmentShader) {
+        m_cachedFragmentShader->removeClient(this);
+        m_cachedFragmentShader = 0;
+        m_isFragmentShaderLoaded = false;
+    }
+}
+
+void StyleCustomFilterProgram::notifyFinished(CachedResource* resource)
+{
+    if (resource->errorOccurred())
+        return;
+    // Note that m_cachedVertexShader might be equal to m_cachedFragmentShader and it would only get one event in that case.
+    if (resource == m_cachedVertexShader.get())
+        m_isVertexShaderLoaded = true;
+    if (resource == m_cachedFragmentShader.get())
+        m_isFragmentShaderLoaded = true;
+    if (isLoaded())
+        notifyClients();
+}
+
+} // namespace WebCore
+
+#endif // ENABLE(CSS_SHADERS)
index ae68d954a44096fe960d6337cfaff7982a3c3445..dc97da149f34d8bbef6ea4ffa5e7d36bb2526d10 100644 (file)
 #define StyleCustomFilterProgram_h
 
 #if ENABLE(CSS_SHADERS)
+
 #include "CachedResourceClient.h"
 #include "CachedResourceHandle.h"
-#include "CachedShader.h"
 #include "CustomFilterProgram.h"
 #include "StyleShader.h"
 #include <wtf/FastAllocBase.h>
 
 namespace WebCore {
 
-// CSS Shaders
+class CachedShader;
 
 class StyleCustomFilterProgram : public CustomFilterProgram, public CachedResourceClient {
     WTF_MAKE_FAST_ALLOCATED;
@@ -56,64 +56,12 @@ public:
     void setFragmentShader(PassRefPtr<StyleShader> shader) { m_fragmentShader = shader; }
     StyleShader* fragmentShader() const { return m_fragmentShader.get(); }
     
-    virtual String vertexShaderString() const
-    {
-        ASSERT(isLoaded());
-        return m_cachedVertexShader.get() ? m_cachedVertexShader->shaderString() : String();
-    }
-    
-    virtual String fragmentShaderString() const
-    {
-        ASSERT(isLoaded());
-        return m_cachedFragmentShader.get() ? m_cachedFragmentShader->shaderString() : String();
-    }
-
-    virtual bool isLoaded() const
-    {
-        // Do not use the CachedResource:isLoaded method here, because it actually means !isLoading(),
-        // so missing and canceled resources will have isLoaded set to true, even if they are not loaded yet.
-        return (!m_cachedVertexShader.get() || m_isVertexShaderLoaded)
-            && (!m_cachedFragmentShader.get() || m_isFragmentShaderLoaded);
-    }
-
-    virtual void willHaveClients()
-    {
-        if (m_vertexShader) {
-            m_cachedVertexShader = m_vertexShader->cachedShader();
-            m_cachedVertexShader->addClient(this);
-        }
-        if (m_fragmentShader) {
-            m_cachedFragmentShader = m_fragmentShader->cachedShader();
-            m_cachedFragmentShader->addClient(this);
-        }
-    }
-    
-    virtual void didRemoveLastClient()
-    {
-        if (m_cachedVertexShader.get()) {
-            m_cachedVertexShader->removeClient(this);
-            m_cachedVertexShader = 0;
-            m_isVertexShaderLoaded = false;
-        }
-        if (m_cachedFragmentShader.get()) {
-            m_cachedFragmentShader->removeClient(this);
-            m_cachedFragmentShader = 0;
-            m_isFragmentShaderLoaded = false;
-        }
-    }
-    
-    virtual void notifyFinished(CachedResource* resource)
-    {
-        if (resource->errorOccurred())
-            return;
-        // Note that m_cachedVertexShader might be equal to m_cachedFragmentShader and it would only get one event in that case.
-        if (resource == m_cachedVertexShader.get())
-            m_isVertexShaderLoaded = true;
-        if (resource == m_cachedFragmentShader.get())
-            m_isFragmentShaderLoaded = true;
-        if (isLoaded())
-            notifyClients();
-    }
+    virtual String vertexShaderString() const OVERRIDE;
+    virtual String fragmentShaderString() const OVERRIDE;
+    virtual bool isLoaded() const OVERRIDE;
+    virtual void willHaveClients() OVERRIDE;
+    virtual void didRemoveLastClient() OVERRIDE;
+    virtual void notifyFinished(CachedResource*) OVERRIDE;
     
     CachedShader* cachedVertexShader() const { return m_vertexShader ? m_vertexShader->cachedShader() : 0; }
     CachedShader* cachedFragmentShader() const { return m_fragmentShader ? m_fragmentShader->cachedShader() : 0; }
index edb41577fd4ab0eaf9973a4c257d3cbc44682943..e236b67901d6547ddb65500231d6afb9f6507ce7 100644 (file)
@@ -22,7 +22,6 @@
 #define SVGFEImageElement_h
 
 #if ENABLE(SVG) && ENABLE(FILTERS)
-#include "CachedImage.h"
 #include "CachedResourceHandle.h"
 #include "ImageBuffer.h"
 #include "SVGAnimatedBoolean.h"
index 2c7b512d164738271388a7c13220ce55c0b5bed4..4800d751e38c451198d3b5cee513a550df17b695 100644 (file)
@@ -21,7 +21,8 @@
 #define SVGFontFaceUriElement_h
 
 #if ENABLE(SVG_FONTS)
-#include "CachedFont.h"
+
+#include "CachedFontClient.h"
 #include "CachedResourceHandle.h"
 #include "SVGElement.h"
 
@@ -41,7 +42,7 @@ private:
     SVGFontFaceUriElement(const QualifiedName&, Document*);
     
     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
-    virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
+    virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
     virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
 
     void loadFont();
index 4f33d569e1452257145096adec80516150db750d..e67f6490adf109345efd905ba9d6c6e4f14ff27d 100644 (file)
@@ -23,6 +23,7 @@
 #if ENABLE(SVG)
 #include "SVGImageLoader.h"
 
+#include "CachedImage.h"
 #include "Event.h"
 #include "EventNames.h"
 #include "HTMLParserIdioms.h"
index 0f296b9ef18b086e935e8ef4311f7f12070b3b78..84cdefb7c0dca5aed14f1904b12b5d9f07018b33 100644 (file)
@@ -30,6 +30,7 @@
 #include "Attribute.h"
 #include "CachedResourceLoader.h"
 #include "CachedResourceRequest.h"
+#include "CachedSVGDocument.h"
 #include "Document.h"
 #include "ElementShadow.h"
 #include "Event.h"
index a7a1eaf8052ff79d9c9360a1cd9a9d2c2c52d47e..4046ef684bef1d0d08140739ec588e626a5deb1f 100644 (file)
@@ -22,7 +22,8 @@
 #define SVGUseElement_h
 
 #if ENABLE(SVG)
-#include "CachedSVGDocument.h"
+#include "CachedResourceHandle.h"
+#include "CachedSVGDocumentClient.h"
 #include "SVGAnimatedBoolean.h"
 #include "SVGAnimatedLength.h"
 #include "SVGExternalResourcesRequired.h"
index 63ee611804197bafe25cd18f146e4716c0cc81b6..0a2f7b03267aca518384f1cc4d1c5c19a82417d7 100644 (file)
@@ -22,7 +22,6 @@
 #include "SVGImageCache.h"
 
 #if ENABLE(SVG)
-#include "CachedImage.h"
 #include "FrameView.h"
 #include "GraphicsContext.h"
 #include "ImageBuffer.h"
index b33167609389600dc26644a1df74fa10fdd7471e..0f2046f3273719424d3942fe21906e25d4b2c974 100644 (file)
@@ -32,6 +32,7 @@
 #include "DocumentLoader.h"
 #include "DocumentWriter.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "HTMLIFrameElement.h"
 #include "PagePopup.h"
 #include "PagePopupClient.h"
index b60213ebccea067e39353a5c5b66b94ec13b3e55..8d263a752b8ef2137a7d58efe696b6054cd81376 100644 (file)
@@ -37,6 +37,7 @@
 
 namespace WebCore {
 
+class CachedResourceLoader;
 class XSLImportRule;
     
 class XSLStyleSheet : public StyleSheet {
index 503802c7fe7b56f5f72d1783ab7bc30cb6581ade..0b667967bf3bcda8eaeaf8e552e0594b97c4f443 100644 (file)
@@ -31,8 +31,8 @@
 #include "DOMWindow.h"
 #include "Document.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "ResourceError.h"
-#include "ResourceHandle.h"
 #include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "SecurityOrigin.h"
index 4e1350e34638e880b87c75d6f7f21456ea5f8b7c..db88c3fa0215b59c71e11e11c1b17e5b98057447 100644 (file)
@@ -42,7 +42,6 @@
 #include "ImageLoader.h"
 #include "ProcessingInstruction.h"
 #include "ResourceError.h"
-#include "ResourceHandle.h"
 #include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "ScriptElement.h"
index c5cf5f671c0270b33e48a6f6e5b1fae17ab0429d..b4f0e1e2b8972a4ab932c32225e9a8e196b581be 100644 (file)
@@ -33,6 +33,7 @@
 #include "XMLErrors.h"
 #include <wtf/HashMap.h>
 #include <wtf/OwnPtr.h>
+#include <wtf/text/AtomicStringHash.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/StringHash.h>
 
index 50bb4ffe3785535c5db61017c39d717bea8e4ee7..3e0cccf416bd57c67af2272616df25ecdd5bc77b 100644 (file)
@@ -46,7 +46,6 @@
 #include "HTMLTemplateElement.h"
 #include "ProcessingInstruction.h"
 #include "ResourceError.h"
-#include "ResourceHandle.h"
 #include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "ScriptElement.h"
index 91770ce6f516e1cf4291384cb3634ee2b5506179..5ea574c308e15cc895604d5ad971032ec1f80930 100644 (file)
@@ -1,3 +1,23 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * src/ApplicationCacheHost.cpp:
+        * src/AssociatedURLLoader.cpp:
+        * src/EditorClientImpl.cpp:
+        * src/SharedWorkerRepository.cpp:
+        * src/WebDataSourceImpl.cpp:
+        * src/WebFrameImpl.h:
+        * src/WebNode.cpp:
+        * src/WebSharedWorkerImpl.cpp:
+        * tests/FrameLoaderClientImplTest.cpp:
+
 2013-02-28  Ankur Taly  <ataly@google.com>
 
         WebKit API for enabling DOM logging for certain worlds
index a8f398eb5bab93387ca3fddb2330fd12db3b388c..dbfd45048a753b478e8aa70a1cea146f1c4b2457 100644 (file)
@@ -35,6 +35,7 @@
 #include "DOMApplicationCache.h"
 #include "DocumentLoader.h"
 #include "Frame.h"
+#include "FrameLoader.h"
 #include "InspectorApplicationCacheAgent.h"
 #include "InspectorInstrumentation.h"
 #include "Page.h"
index cebedfad5f496cf479aee9b170d0757af3dade59..6be97634fa25765987ca22951f17113d6e95ecc1 100644 (file)
@@ -35,6 +35,7 @@
 #include "DocumentThreadableLoader.h"
 #include "DocumentThreadableLoaderClient.h"
 #include "HTTPValidation.h"
+#include "ResourceError.h"
 #include "SubresourceLoader.h"
 #include "Timer.h"
 #include "WebApplicationCacheHost.h"
index 0f32552c4073c299644a143bda91e4a8f23ba9a5..98303f4f464df321bb494d334be3a860bc4822f4 100644 (file)
@@ -36,6 +36,7 @@
 #include "HTMLNames.h"
 #include "KeyboardCodes.h"
 #include "KeyboardEvent.h"
+#include "NotImplemented.h"
 #include "PlatformKeyboardEvent.h"
 #include "RenderObject.h"
 #include "Settings.h"
index 45ae12b9977cd6e1358ed42102cba4b467c0a347..a7e27b726b78442255dbbf87831fd1624ea73554 100644 (file)
@@ -41,6 +41,7 @@
 #include "InspectorInstrumentation.h"
 #include "MessagePortChannel.h"
 #include "PlatformMessagePortChannelChromium.h"
+#include "ResourceResponse.h"
 #include "ScriptExecutionContext.h"
 #include "SharedWorker.h"
 #include "WebContentSecurityPolicy.h"
index 490f298bf8f7e360a409b8dbbd9435dad4dbbd99..1a3f85aff1fe85824c6420e16f62d07845a1c521 100644 (file)
@@ -32,6 +32,7 @@
 #include "WebDataSourceImpl.h"
 
 #include "ApplicationCacheHostInternal.h"
+#include "FrameLoader.h"
 #include <public/WebURL.h>
 #include <public/WebURLError.h>
 #include <public/WebVector.h>
index 0ce98fb5c0ec08b32c0bcc565d0d69c2dfa2e2a4..72ba786a68cbe2db86ee2cb0a4580c4e2e4142e0 100644 (file)
@@ -42,6 +42,7 @@
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
+class FrameLoadRequest;
 class GraphicsContext;
 class HTMLInputElement;
 class HistoryItem;
index 8b4dc8a6cc798bc35a62594d733bf0a477e970c8..9872df31c6f48a9a3e6a13a1c2cce5e3498552a0 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "Document.h"
 #include "Element.h"
+#include "Event.h"
 #include "Frame.h"
 #include "FrameLoaderClientImpl.h"
 #include "Node.h"
index f60bed13c92743732db4d00971d8bbef8f40439a..acd2ad19d7ac4d9fd8f08709c21b9eafd21fcfb5 100644 (file)
@@ -35,6 +35,7 @@
 #include "DatabaseTask.h"
 #include "Document.h"
 #include "FrameLoadRequest.h"
+#include "FrameLoader.h"
 #include "GroupSettings.h"
 #include "KURL.h"
 #include "MessageEvent.h"
index 12ca6841830cb361b0c7c031597d5fdd8658536a..eebbdb08e6afcfa4a98e588b2e9353a0d80afa0a 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "FrameLoaderClientImpl.h"
 
+#include "FrameLoader.h"
 #include "KURL.h"
 #include "WebFrameClient.h"
 #include "WebFrameImpl.h"
index 5e32027255fa425752ba7d6e7cb1468232c648d2..3a7034e0d31fe7c1835a4f6af2f15aad75e53a04 100644 (file)
@@ -1,3 +1,16 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
+        * ewk/ewk_frame.cpp:
+
 2013-02-28  Seokju Kwon  <seokju.kwon@gmail.com>
 
         [EFL] Focus problem in inspector/extensions/extensions-panel.html
index b9d17e8c1842f3031ce97c0dac7fd825c1721784..e03793d215b3ed26d0df3b40e5e00b9b6f4cf1c3 100644 (file)
@@ -38,6 +38,7 @@
 #include <FindOptions.h>
 #include <FloatSize.h>
 #include <FocusController.h>
+#include <FrameLoader.h>
 #include <FrameView.h>
 #include <HTMLInputElement.h>
 #include <InspectorController.h>
index 1d94de62c990c432592934eeaf19c2733a4de363..4153694396c1cf70e964e4783f0dfba237b80585 100644 (file)
@@ -29,6 +29,7 @@
 #include "EventHandler.h"
 #include "FocusController.h"
 #include "FrameLoadRequest.h"
+#include "FrameLoader.h"
 #include "FrameLoaderClientEfl.h"
 #include "FrameView.h"
 #include "HTMLCollection.h"
index 0334acb92392b331d6a483b60b33bb35b54535a8..0b6e1904c467273114909cca5bbfcd635319355e 100644 (file)
@@ -1,3 +1,15 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * webkit/webkitwebpolicydecision.cpp:
+
 2013-02-26  Martin Robinson  <mrobinson@igalia.com>
 
         REGRESSION (r143619): Crashes in three layout tests
index 624ff9a7a91117fce747d315ce40239357b6786e..6ffefbdae36548403c8c5fc859d1750aeceafc81 100644 (file)
@@ -20,8 +20,8 @@
 #include "config.h"
 #include "webkitwebpolicydecision.h"
 
+#include "FrameLoader.h"
 #include "FrameLoaderClient.h"
-#include "FrameLoaderTypes.h"
 #include "webkitwebframeprivate.h"
 #include "webkitwebpolicydecisionprivate.h"
 
index 02764bf9dd6300212ce6987773481737b8c7d26e..9c9e54c28a09c896f7c976792aadfd724c3e5bd4 100644 (file)
@@ -1,3 +1,19 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * DOM/WebDOMOperations.mm:
+        * Misc/WebNSPasteboardExtras.mm:
+        * WebCoreSupport/WebFrameNetworkingContext.mm:
+        * WebView/WebRenderLayer.mm:
+        * WebView/WebRenderNode.mm:
+
 2013-02-27  John Bauman  <jbauman@chromium.org>
 
         Plugin in iframe may not display
index 8197fd2e3f9a31f021d8af7debc96a5e87e1bb16..88c1d867c3eef299bdef47ef823feda382b6221f 100644 (file)
@@ -41,6 +41,7 @@
 #import <JavaScriptCore/APICast.h>
 #import <WebCore/Document.h>
 #import <WebCore/Frame.h>
+#import <WebCore/FrameLoader.h>
 #import <WebCore/HTMLInputElement.h>
 #import <WebCore/HTMLParserIdioms.h>
 #import <WebCore/JSElement.h>
index e4404f710c8e743fd3736138e232c34cf4449e75..a4af935db69a74da4f1c6d04db173125a5fe2de7 100644 (file)
@@ -36,6 +36,7 @@
 #import "WebResourcePrivate.h"
 #import "WebURLsWithTitles.h"
 #import "WebViewPrivate.h"
+#import <WebCore/CachedImage.h>
 #import <WebCore/Element.h>
 #import <WebCore/Image.h>
 #import <WebCore/MIMETypeRegistry.h>
index 3055f9ea951f0340c0a92280f4967ac32eea006d..de0ed85fdc38b2a3329799cf2ae63ac395186565 100644 (file)
@@ -20,6 +20,7 @@
 
 #import "WebFrameNetworkingContext.h"
 
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameLoaderClient.h>
 #import <WebCore/NetworkStorageSession.h>
 #import <WebCore/Page.h>
index 646dc1d83cdb4514c69227dba8e16a6a81ff5fe5..ebf387710d75fbeb5caa7aebbb15607e80bde1c6 100644 (file)
@@ -27,6 +27,7 @@
 
 #import "WebFrameInternal.h"
 #import <WebCore/Frame.h>
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameLoaderClient.h>
 #import <WebCore/RenderLayer.h>
 #import <WebCore/RenderLayerBacking.h>
index 9bed4bdb1c5ddbd15da60584ddd07d26b8a5e2e8..2392b99f6dc20648c8b38b4e77dbc3f354169019 100644 (file)
@@ -30,6 +30,7 @@
 
 #import "WebFrameInternal.h"
 #import <WebCore/Frame.h>
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameLoaderClient.h>
 #import <WebCore/RenderText.h>
 #import <WebCore/RenderWidget.h>
index 82235d53189174d712bb7d997f3d1c3b1d06a525..c6e380a90af9eb609f80a416b3fbc66be44d55ef 100644 (file)
@@ -1,3 +1,16 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * WebCoreSupport/NotificationPresenterClientQt.cpp:
+        * WebCoreSupport/QWebPageAdapter.cpp:
+
 2013-02-24  Andreas Kling  <akling@apple.com>
 
         StyledElement: Don't expose a mutable direct interface to the inline style.
index 7b92e50d46db68964ceaa458584c7dc3bd8c23ab..11b0f265839a3fb4113c6d92e5a27ec5350e84b0 100644 (file)
@@ -33,6 +33,7 @@
 #include "NotificationPresenterClientQt.h"
 
 #include "Document.h"
+#include "Event.h"
 #include "EventNames.h"
 #include "KURL.h"
 #include "Page.h"
index a4b542cccd01d5a9187f89e4a08de0d646c7b23c..5f0ca236a9bc39e946bfebdbdf41bc177caa233f 100644 (file)
@@ -41,6 +41,7 @@
 #include "DragSession.h"
 #include "EditorClientQt.h"
 #include "FocusController.h"
+#include "FrameLoadRequest.h"
 #include "FrameView.h"
 #if ENABLE(GEOLOCATION)
 #include "GeolocationClientMock.h"
index 63c3c308f17f936f2801f0a7e304900b8353fbec..5deb3db65a0fd3f5a3b44cddaa97c244b3149374 100644 (file)
@@ -1,3 +1,33 @@
+2013-02-28  Alexey Proskuryakov  <ap@apple.com>
+
+        Reduce amount of rebuilding when touching networking headers
+        https://bugs.webkit.org/show_bug.cgi?id=111035
+
+        Reviewed by Eric Seidel.
+
+        Adding includes that are now necessary because WebCore headers don't have them
+        any more.
+
+        * NetworkProcess/HostRecord.h:
+        * NetworkProcess/NetworkResourceLoadScheduler.h:
+        * NetworkProcess/NetworkResourceLoader.h:
+        * Shared/WebRenderLayer.cpp:
+        * Shared/WebRenderObject.cpp:
+        * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
+        * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
+        * WebProcess/Plugins/PDF/PDFPlugin.mm:
+        * WebProcess/Plugins/PluginView.cpp:
+        * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
+        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
+        * WebProcess/WebPage/mac/WebPageMac.mm:
+        * WebProcess/WebProcess.cpp:
+        * WebProcess/soup/WebProcessSoup.cpp:
+
 2013-02-28  Seokju Kwon  <seokju.kwon@gmail.com>
 
         [WK2] Refactoring : Fix indentation and braces in WebInspectorClient.h|cpp
index d7497d7a8720a8ca8c94f3952de85e4a4a4db460..84611a19ac0700e02dbb9634309a28dbbcd3e178 100644 (file)
@@ -28,7 +28,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-#include <WebCore/ResourceRequest.h>
+#include <WebCore/ResourceLoadPriority.h>
 #include <wtf/Deque.h>
 #include <wtf/HashSet.h>
 #include <wtf/RefCounted.h>
index 78ce23f426c7e554c6acfc93f0a9058b8ed67ee0..0cadd04e46ef6efad27e853709192a930f9a9ca5 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "SchedulableLoader.h"
 #include <WebCore/ResourceLoaderOptions.h>
-#include <WebCore/ResourceRequest.h>
 #include <WebCore/Timer.h>
 #include <wtf/HashSet.h>
 
index dfacb6cdc4c53bc090e7f16fd0ea47f384b0d2cf..30fa94dfe9e8495f49d2612bf138bc5bf4e2425f 100644 (file)
 #include "SchedulableLoader.h"
 #include <WebCore/ResourceHandleClient.h>
 #include <WebCore/ResourceLoaderOptions.h>
-#include <WebCore/ResourceRequest.h>
 
 namespace WebCore {
 class ResourceBuffer;
 class ResourceHandle;
+class ResourceRequest;
 }
 
 namespace WebKit {
index 9b138fc6f00f73094e01f1d962c7ea69a98d8ea2..31f1bbdb329111b489106a3160af931b46d0f8dd 100644 (file)
@@ -29,6 +29,7 @@
 #include "WebPage.h"
 #include "WebString.h"
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameLoaderClient.h>
 #include <WebCore/RenderLayer.h>
 #include <WebCore/RenderLayerBacking.h>
index 3a25edf0f36ad9cacfe66427f6e39f08647f3831..b72ff049c22e7d3f88797a364116a8040b5ed23e 100644 (file)
@@ -29,6 +29,7 @@
 #include "WebPage.h"
 #include "WebString.h"
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameLoaderClient.h>
 #include <WebCore/RenderText.h>
 #include <WebCore/RenderView.h>
index 0d110c53a06dfba4fa8ff9055c85e920ddaa42bb..99b4743f528d259147a1361c69dbb5b28bee3262 100644 (file)
@@ -33,6 +33,7 @@
 #include "WebPage.h"
 #include "WebPageProxyMessages.h"
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/Geolocation.h>
 #include <WebCore/SecurityOrigin.h>
 
index 06ddc3b5d9b1feae01e89230429a21ccc5ca958a..b0177b5b3f88032321e4160ebdd9ebaa46914c40 100644 (file)
@@ -34,6 +34,7 @@
 #include "WebFrame.h"
 #include "WebSecurityOrigin.h"
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameView.h>
 
 using namespace WebCore;
index 77e03093d5fd0d96424d3154f77c94d4194b16ea..1295359e87bbb7fd65c544e31c53584b6d05b5a5 100644 (file)
@@ -31,6 +31,7 @@
 #include <JavaScriptCore/APICast.h>
 #include <WebCore/Document.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/HTMLFrameElement.h>
 #include <WebCore/HTMLIFrameElement.h>
 #include <WebCore/HTMLInputElement.h>
index 93939b526f556acc27403ed05e70e5b38ace7141..dcd063d3742bf075c7b944b11f8acb1aacbb6bc4 100644 (file)
@@ -51,6 +51,7 @@
 #include <WebCore/ApplicationCache.h>
 #include <WebCore/ApplicationCacheStorage.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameView.h>
 #include <WebCore/GCController.h>
 #include <WebCore/GeolocationClient.h>
index d448e84dc31f0c3e568715e49861323d7e7a4661..a2b4a0baba5cd738c01ec6d73e097a6d6e262a94 100644 (file)
@@ -31,6 +31,7 @@
 #include "WebFrameLoaderClient.h"
 #include <WebCore/DOMWindowExtension.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <wtf/HashMap.h>
 
 using namespace WebCore;
index 2f59af9e683a667e9308f6d214dbeac3a5705d3e..460f4f63298c2f27c249d5c1173870bd6efb578a 100644 (file)
@@ -48,6 +48,7 @@
 #import <WebCore/FocusController.h>
 #import <WebCore/FormState.h>
 #import <WebCore/Frame.h>
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameView.h>
 #import <WebCore/GraphicsContext.h>
 #import <WebCore/HTMLElement.h>
index d9c2005d4659cf251a14167b5e970f26da4b37e8..e630378cb3a96e0247a4b63cec00d9453a66a29d 100644 (file)
@@ -44,6 +44,7 @@
 #include <WebCore/FocusController.h>
 #include <WebCore/Frame.h>
 #include <WebCore/FrameLoadRequest.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameLoaderClient.h>
 #include <WebCore/FrameView.h>
 #include <WebCore/GraphicsContext.h>
index 29c7e2e9df4fb683ac7b882db6f1e3c488d5c0cc..e21280e9a98845452d66cd805ee9c8dacd87fef2 100644 (file)
@@ -33,7 +33,9 @@
 #include "WebContextMenuItemData.h"
 #include "WebPage.h"
 #include <WebCore/ContextMenu.h>
+#include <WebCore/Event.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/NotImplemented.h>
 #include <WebCore/Page.h>
 #include <WebCore/UserGestureIndicator.h>
index f309aac61ec46f6a16ea5056319d0c6c00e3b302..4d33f92d90b13413606e1d00a563cb9377fb7d1e 100644 (file)
@@ -37,6 +37,7 @@
 #include <WebCore/DocumentFragment.h>
 #include <WebCore/FocusController.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameView.h>
 #include <WebCore/HTMLInputElement.h>
 #include <WebCore/HTMLNames.h>
index 61149fd8409767a78328def7296d16f281a64773..a83de1db22931652a1bf9e6ac0475951f74127e7 100644 (file)
@@ -57,6 +57,7 @@
 #include <WebCore/FormState.h>
 #include <WebCore/Frame.h>
 #include <WebCore/FrameLoadRequest.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/FrameView.h>
 #include <WebCore/HTMLAppletElement.h>
 #include <WebCore/HTMLFormElement.h>
index 48ef93790fe5e70cef95272125643fa7e368ba6f..2a04c173dbf8e29ee1cd47570d26c22f42031a0d 100644 (file)
@@ -21,6 +21,7 @@
 #import "config.h"
 #import "WebFrameNetworkingContext.h"
 
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameLoaderClient.h>
 #import <WebCore/Page.h>
 #import <WebCore/ResourceError.h>
index 602de9b3a470477a76b17d1e89bb85230e1a285e..8be8d89960a13f3b965be62db8003b79b0596963 100644 (file)
@@ -45,6 +45,7 @@
 #import <WebCore/AXObjectCache.h>
 #import <WebCore/FocusController.h>
 #import <WebCore/Frame.h>
+#import <WebCore/FrameLoader.h>
 #import <WebCore/FrameView.h>
 #import <WebCore/HitTestResult.h>
 #import <WebCore/HTMLConverter.h>
index cb0436701555f1120d853c44ee222a0be217adde..1532e872b55f0ebdc33638afe92484a3a9a64d29 100644 (file)
@@ -63,6 +63,7 @@
 #include <WebCore/Font.h>
 #include <WebCore/FontCache.h>
 #include <WebCore/Frame.h>
+#include <WebCore/FrameLoader.h>
 #include <WebCore/GCController.h>
 #include <WebCore/GlyphPageTreeNode.h>
 #include <WebCore/IconDatabase.h>
index aaef9659382f7a034ea9f1560c716e35355aa5bc..1c9d3322e58001f2276afadde146ad3391de02cf 100644 (file)
@@ -37,6 +37,7 @@
 #include <WebCore/PageCache.h>
 #include <WebCore/ResourceHandle.h>
 #include <libsoup/soup-cache.h>
+#include <libsoup/soup.h>
 #include <wtf/gobject/GOwnPtr.h>
 #include <wtf/gobject/GRefPtr.h>
 #include <wtf/text/CString.h>