Commit a82aee4a authored by andersca@apple.com's avatar andersca@apple.com

Remove link prerendering code

https://bugs.webkit.org/show_bug.cgi?id=116415

Reviewed by Darin Adler.

.:

This code was only used by Chromium and is dead now.

* Source/autotools/SetupWebKitFeatures.m4:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/JavaScriptCore:

This code was only used by Chromium and is dead now.

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
(WebCore::Document::Document):
* dom/Document.h:
(WebCore):
(Document):
* dom/EventNames.h:
(WebCore):
* html/HTMLLinkElement.cpp:
* html/HTMLLinkElement.h:
* html/LinkRelAttribute.cpp:
(WebCore::LinkRelAttribute::LinkRelAttribute):
* html/LinkRelAttribute.h:
(LinkRelAttribute):
* loader/LinkLoader.cpp:
(WebCore::LinkLoader::~LinkLoader):
(WebCore::LinkLoader::loadLink):
(WebCore::LinkLoader::released):
* loader/LinkLoader.h:
(WebCore):
(LinkLoader):
* loader/LinkLoaderClient.h:
(LinkLoaderClient):
* loader/Prerenderer.cpp: Removed.
* loader/Prerenderer.h: Removed.
* loader/PrerendererClient.cpp: Removed.
* loader/PrerendererClient.h: Removed.
* platform/PrerenderClient.h: Removed.
* platform/PrerenderHandle.h: Removed.

Source/WebKit/blackberry:

This code was only used by Chromium and is dead now.

* WebCoreSupport/AboutDataEnableFeatures.in:

Source/WebKit/mac:

This code was only used by Chromium and is dead now.

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

This code was only used by Chromium and is dead now.

* Configurations/FeatureDefines.xcconfig:

Source/WTF:

This code was only used by Chromium and is dead now.

* wtf/FeatureDefines.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e7b410b0
2013-05-19 Anders Carlsson <andersca@apple.com>
Remove link prerendering code
https://bugs.webkit.org/show_bug.cgi?id=116415
Reviewed by Darin Adler.
This code was only used by Chromium and is dead now.
* Source/autotools/SetupWebKitFeatures.m4:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:
2013-05-18 Patrick Gansterer <paroga@webkit.org>
[CMake] Replace *_LIBRARY_NAME with *_OUTPUT_NAME
......
2013-05-19 Anders Carlsson <andersca@apple.com>
Remove link prerendering code
https://bugs.webkit.org/show_bug.cgi?id=116415
Reviewed by Darin Adler.
This code was only used by Chromium and is dead now.
* Configurations/FeatureDefines.xcconfig:
2013-05-18 Patrick Gansterer <paroga@webkit.org>
[CMake] Replace *_LIBRARY_NAME with *_OUTPUT_NAME
......
......@@ -126,7 +126,6 @@ ENABLE_LEGACY_NOTIFICATIONS_macosx_1090 = ENABLE_LEGACY_NOTIFICATIONS;
ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
ENABLE_LEGACY_WEB_AUDIO = ENABLE_LEGACY_WEB_AUDIO;
ENABLE_LINK_PREFETCH = ;
ENABLE_LINK_PRERENDER = ;
ENABLE_MATHML = ENABLE_MATHML;
ENABLE_MEDIA_SOURCE = ;
ENABLE_MEDIA_STATISTICS = ;
......
2013-05-19 Anders Carlsson <andersca@apple.com>
Remove link prerendering code
https://bugs.webkit.org/show_bug.cgi?id=116415
Reviewed by Darin Adler.
This code was only used by Chromium and is dead now.
* wtf/FeatureDefines.h:
2013-05-18 Patrick Gansterer <paroga@webkit.org>
[CMake] Replace *_LIBRARY_NAME with *_OUTPUT_NAME
......
......@@ -572,10 +572,6 @@
#define ENABLE_LINK_PREFETCH 0
#endif
#if !defined(ENABLE_LINK_PRERENDER)
#define ENABLE_LINK_PRERENDER 0
#endif
#if !defined(ENABLE_MATHML)
#define ENABLE_MATHML 1
#endif
......
2013-05-19 Anders Carlsson <andersca@apple.com>
Remove link prerendering code
https://bugs.webkit.org/show_bug.cgi?id=116415
Reviewed by Darin Adler.
* Configurations/FeatureDefines.xcconfig:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
(WebCore::Document::Document):
* dom/Document.h:
(WebCore):
(Document):
* dom/EventNames.h:
(WebCore):
* html/HTMLLinkElement.cpp:
* html/HTMLLinkElement.h:
* html/LinkRelAttribute.cpp:
(WebCore::LinkRelAttribute::LinkRelAttribute):
* html/LinkRelAttribute.h:
(LinkRelAttribute):
* loader/LinkLoader.cpp:
(WebCore::LinkLoader::~LinkLoader):
(WebCore::LinkLoader::loadLink):
(WebCore::LinkLoader::released):
* loader/LinkLoader.h:
(WebCore):
(LinkLoader):
* loader/LinkLoaderClient.h:
(LinkLoaderClient):
* loader/Prerenderer.cpp: Removed.
* loader/Prerenderer.h: Removed.
* loader/PrerendererClient.cpp: Removed.
* loader/PrerendererClient.h: Removed.
* platform/PrerenderClient.h: Removed.
* platform/PrerenderHandle.h: Removed.
2013-05-19 Simon Fraser <simon.fraser@apple.com>
Change the terminology used by rendering code when painting a given node and its children from "paintingRoot" to "subtreePaintRoot"
......
......@@ -126,7 +126,6 @@ ENABLE_LEGACY_NOTIFICATIONS_macosx_1090 = ENABLE_LEGACY_NOTIFICATIONS;
ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
ENABLE_LEGACY_WEB_AUDIO = ENABLE_LEGACY_WEB_AUDIO;
ENABLE_LINK_PREFETCH = ;
ENABLE_LINK_PRERENDER = ;
ENABLE_MATHML = ENABLE_MATHML;
ENABLE_MEDIA_SOURCE = ;
ENABLE_MEDIA_STATISTICS = ;
......@@ -184,4 +183,4 @@ ENABLE_WORKERS = ENABLE_WORKERS;
ENABLE_XHR_TIMEOUT = ENABLE_XHR_TIMEOUT;
ENABLE_XSLT = ENABLE_XSLT;
FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHADERS) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS_VARIABLES) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIALOG_ELEMENT) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_DRAGGABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILE_SYSTEM) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_IFRAME_SEAMLESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LINK_PREFETCH) $(ENABLE_LINK_PRERENDER) $(ENABLE_MATHML) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MICRODATA) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PLUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHADOW_DOM) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_STYLE_SCOPED) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SVG) $(ENABLE_SVG_FONTS) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_THREADED_HTML_PARSER) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(FEATURE_DEFINES_$(PLATFORM_NAME));
FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHADERS) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS_VARIABLES) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIALOG_ELEMENT) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_DRAGGABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILE_SYSTEM) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_IFRAME_SEAMLESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MICRODATA) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PLUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHADOW_DOM) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_STYLE_SCOPED) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SVG) $(ENABLE_SVG_FONTS) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_THREADED_HTML_PARSER) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(FEATURE_DEFINES_$(PLATFORM_NAME));
......@@ -4132,10 +4132,6 @@ webcore_sources += \
Source/WebCore/loader/PolicyCallback.h \
Source/WebCore/loader/PolicyChecker.cpp \
Source/WebCore/loader/PolicyChecker.h \
Source/WebCore/loader/Prerenderer.cpp \
Source/WebCore/loader/Prerenderer.h \
Source/WebCore/loader/PrerendererClient.cpp \
Source/WebCore/loader/PrerendererClient.h \
Source/WebCore/loader/ProgressTracker.cpp \
Source/WebCore/loader/ProgressTracker.h \
Source/WebCore/loader/NavigationScheduler.cpp \
......@@ -5953,8 +5949,6 @@ webcore_platform_sources += \
Source/WebCore/platform/PopupMenuClient.h \
Source/WebCore/platform/PopupMenu.h \
Source/WebCore/platform/PopupMenuStyle.h \
Source/WebCore/platform/PrerenderClient.h \
Source/WebCore/platform/PrerenderHandle.h \
Source/WebCore/platform/PublicSuffix.h \
Source/WebCore/platform/PurgeableBuffer.h \
Source/WebCore/platform/PurgePriority.h \
......
......@@ -887,8 +887,6 @@ SOURCES += \
loader/PolicyCallback.cpp \
loader/PolicyChecker.cpp \
loader/ProgressTracker.cpp \
loader/Prerenderer.cpp \
loader/PrerendererClient.cpp \
loader/NavigationScheduler.cpp \
loader/ResourceBuffer.cpp \
loader/ResourceLoader.cpp \
......@@ -2055,8 +2053,6 @@ HEADERS += \
loader/NavigationAction.h \
loader/NetscapePlugInStreamLoader.h \
loader/PlaceholderDocument.h \
loader/Prerenderer.h \
loader/PrerendererClient.h \
loader/ProgressTracker.h \
loader/ResourceBuffer.h \
loader/ResourceLoader.h \
......@@ -2397,8 +2393,6 @@ HEADERS += \
platform/Timer.h \
platform/Widget.h \
platform/PlatformStrategies.h \
platform/PrerenderClient.h \
platform/PrerenderHandle.h \
platform/LocalizedStrings.h \
plugins/DOMMimeTypeArray.h \
plugins/DOMMimeType.h \
......
......@@ -28118,22 +28118,6 @@
RelativePath="..\loader\PolicyChecker.h"
>
</File>
<File
RelativePath="..\loader\Prerenderer.cpp"
>
</File>
<File
RelativePath="..\loader\Prerenderer.h"
>
</File>
<File
RelativePath="..\loader\PrerendererClient.cpp"
>
</File>
<File
RelativePath="..\loader\PrerendererClient.h"
>
</File>
<File
RelativePath="..\loader\ProgressTracker.cpp"
>
......@@ -29086,14 +29070,6 @@
RelativePath="..\platform\PopupMenuStyle.h"
>
</File>
<File
RelativePath="..\platform\PrerenderClient.h"
>
</File>
<File
RelativePath="..\platform\PrerenderHandle.h"
>
</File>
<File
RelativePath="..\platform\PurgeableBuffer.h"
>
......@@ -3996,8 +3996,6 @@
<ClCompile Include="..\loader\PlaceholderDocument.cpp" />
<ClCompile Include="..\loader\PolicyCallback.cpp" />
<ClCompile Include="..\loader\PolicyChecker.cpp" />
<ClCompile Include="..\loader\Prerenderer.cpp" />
<ClCompile Include="..\loader\PrerendererClient.cpp" />
<ClCompile Include="..\loader\ProgressTracker.cpp" />
<ClCompile Include="..\loader\ResourceBuffer.cpp" />
<ClCompile Include="..\loader\ResourceLoader.cpp" />
......@@ -11443,8 +11441,6 @@
<ClInclude Include="..\loader\PlaceholderDocument.h" />
<ClInclude Include="..\loader\PolicyCallback.h" />
<ClInclude Include="..\loader\PolicyChecker.h" />
<ClInclude Include="..\loader\Prerenderer.h" />
<ClInclude Include="..\loader\PrerendererClient.h" />
<ClInclude Include="..\loader\ProgressTracker.h" />
<ClInclude Include="..\loader\ResourceBuffer.h" />
<ClInclude Include="..\loader\ResourceLoader.h" />
......@@ -11563,8 +11559,6 @@
<ClInclude Include="..\platform\PopupMenu.h" />
<ClInclude Include="..\platform\PopupMenuClient.h" />
<ClInclude Include="..\platform\PopupMenuStyle.h" />
<ClInclude Include="..\platform\PrerenderClient.h" />
<ClInclude Include="..\platform\PrerenderHandle.h" />
<ClInclude Include="..\platform\PurgeableBuffer.h" />
<ClInclude Include="..\platform\ReferrerPolicy.h" />
<ClInclude Include="..\platform\RunLoop.h" />
......@@ -918,12 +918,6 @@
<ClCompile Include="..\loader\PolicyChecker.cpp">
<Filter>loader</Filter>
</ClCompile>
<ClCompile Include="..\loader\Prerenderer.cpp">
<Filter>loader</Filter>
</ClCompile>
<ClCompile Include="..\loader\PrerendererClient.cpp">
<Filter>loader</Filter>
</ClCompile>
<ClCompile Include="..\loader\ProgressTracker.cpp">
<Filter>loader</Filter>
</ClCompile>
......@@ -7644,12 +7638,6 @@
<ClInclude Include="..\loader\PolicyChecker.h">
<Filter>loader</Filter>
</ClInclude>
<ClInclude Include="..\loader\Prerenderer.h">
<Filter>loader</Filter>
</ClInclude>
<ClInclude Include="..\loader\PrerendererClient.h">
<Filter>loader</Filter>
</ClInclude>
<ClInclude Include="..\loader\ProgressTracker.h">
<Filter>loader</Filter>
</ClInclude>
......@@ -7974,12 +7962,6 @@
<ClInclude Include="..\platform\PopupMenuStyle.h">
<Filter>platform</Filter>
</ClInclude>
<ClInclude Include="..\platform\PrerenderClient.h">
<Filter>platform</Filter>
</ClInclude>
<ClInclude Include="..\platform\PrerenderHandle.h">
<Filter>platform</Filter>
</ClInclude>
<ClInclude Include="..\platform\PurgeableBuffer.h">
<Filter>platform</Filter>
</ClInclude>
......
......@@ -3273,12 +3273,8 @@
97F8E666151D4A4E00D2D181 /* WorkerContextNotifications.h in Headers */ = {isa = PBXBuildFile; fileRef = 97F8E662151D4A3F00D2D181 /* WorkerContextNotifications.h */; };
9831AE4A154225C900FE2644 /* ReferrerPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 9831AE49154225A200FE2644 /* ReferrerPolicy.h */; settings = {ATTRIBUTES = (Private, ); }; };
984264F112D5280A000D88A4 /* LinkLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 984264EF12D5280A000D88A4 /* LinkLoaderClient.h */; };
9856F8CD1549E82400B04F3A /* Prerenderer.h in Headers */ = {isa = PBXBuildFile; fileRef = 9856F8C91549E82400B04F3A /* Prerenderer.h */; };
9856F8CF1549E82400B04F3A /* PrerendererClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 9856F8CB1549E82400B04F3A /* PrerendererClient.h */; };
9856F8D11549E84F00B04F3A /* PrerenderHandle.h in Headers */ = {isa = PBXBuildFile; fileRef = 9856F8D01549E84F00B04F3A /* PrerenderHandle.h */; };
985BB96D13A94058007A0B69 /* LinkRelAttribute.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 985BB96B13A94058007A0B69 /* LinkRelAttribute.cpp */; };
985BB96E13A94058007A0B69 /* LinkRelAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = 985BB96C13A94058007A0B69 /* LinkRelAttribute.h */; };
986EA88315FFF29000985E5E /* PrerenderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 986EA88215FFF29000985E5E /* PrerenderClient.h */; };
98CE4326129E00BD005821DC /* LinkLoader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 98CE4325129E00BD005821DC /* LinkLoader.cpp */; };
98CE432A129E00E5005821DC /* LinkLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 98CE4329129E00E5005821DC /* LinkLoader.h */; };
98EB1F951313FE0500D0E1EA /* NotImplemented.h in Headers */ = {isa = PBXBuildFile; fileRef = 98EB1F941313FE0500D0E1EA /* NotImplemented.h */; settings = {ATTRIBUTES = (Private, ); }; };
......@@ -9743,12 +9739,8 @@
97F8E663151D4A3F00D2D181 /* WorkerContextNotifications.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = WorkerContextNotifications.idl; path = Modules/notifications/WorkerContextNotifications.idl; sourceTree = "<group>"; };
9831AE49154225A200FE2644 /* ReferrerPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReferrerPolicy.h; sourceTree = "<group>"; };
984264EF12D5280A000D88A4 /* LinkLoaderClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkLoaderClient.h; sourceTree = "<group>"; };
9856F8C91549E82400B04F3A /* Prerenderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Prerenderer.h; path = loader/Prerenderer.h; sourceTree = SOURCE_ROOT; };
9856F8CB1549E82400B04F3A /* PrerendererClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PrerendererClient.h; path = loader/PrerendererClient.h; sourceTree = SOURCE_ROOT; };
9856F8D01549E84F00B04F3A /* PrerenderHandle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrerenderHandle.h; sourceTree = "<group>"; };
985BB96B13A94058007A0B69 /* LinkRelAttribute.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkRelAttribute.cpp; sourceTree = "<group>"; };
985BB96C13A94058007A0B69 /* LinkRelAttribute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkRelAttribute.h; sourceTree = "<group>"; };
986EA88215FFF29000985E5E /* PrerenderClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrerenderClient.h; sourceTree = "<group>"; };
98CE4325129E00BD005821DC /* LinkLoader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkLoader.cpp; sourceTree = "<group>"; };
98CE4329129E00E5005821DC /* LinkLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkLoader.h; sourceTree = "<group>"; };
98EB1F941313FE0500D0E1EA /* NotImplemented.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotImplemented.h; sourceTree = "<group>"; };
......@@ -13404,8 +13396,6 @@
1A8F6BB90DB55CDC001DB794 /* DOMApplicationCache.idl */,
1A8F6BBA0DB55CDC001DB794 /* ManifestParser.cpp */,
1A8F6BBB0DB55CDC001DB794 /* ManifestParser.h */,
9856F8C91549E82400B04F3A /* Prerenderer.h */,
9856F8CB1549E82400B04F3A /* PrerendererClient.h */,
);
path = appcache;
sourceTree = "<group>";
......@@ -19387,8 +19377,6 @@
0668E1890ADD9624004128E0 /* PopupMenu.h */,
ABC128760B33AA6D00C693D5 /* PopupMenuClient.h */,
BC3BE12A0E98092F00835588 /* PopupMenuStyle.h */,
986EA88215FFF29000985E5E /* PrerenderClient.h */,
9856F8D01549E84F00B04F3A /* PrerenderHandle.h */,
0081FEFD16B0A244008AAA7A /* PublicSuffix.h */,
E4D687780ED7AE4F006EA978 /* PurgeableBuffer.h */,
7E33CD00127F340D00BE8F17 /* PurgePriority.h */,
......@@ -23091,10 +23079,6 @@
37919C240B7D188600A56998 /* PositionIterator.h in Headers */,
9746AF3214F4DDE6003E7A70 /* PositionOptions.h in Headers */,
C0F2A44113869AAB0066C534 /* preprocessor.pm in Headers */,
986EA88315FFF29000985E5E /* PrerenderClient.h in Headers */,
9856F8CD1549E82400B04F3A /* Prerenderer.h in Headers */,
9856F8CF1549E82400B04F3A /* PrerendererClient.h in Headers */,
9856F8D11549E84F00B04F3A /* PrerenderHandle.h in Headers */,
B71FE6DF11091CB300DAEF77 /* PrintContext.h in Headers */,
A8EA7EBC0A1945D000A8EF5F /* ProcessingInstruction.h in Headers */,
E44613EC0CD681B500FADA75 /* ProgressEvent.h in Headers */,
......@@ -231,10 +231,6 @@
#include "NodeRareData.h"
#endif
#if ENABLE(LINK_PRERENDER)
#include "Prerenderer.h"
#endif
#if ENABLE(TEXT_AUTOSIZING)
#include "TextAutosizer.h"
#endif
......@@ -517,9 +513,6 @@ Document::Document(Frame* frame, const KURL& url, unsigned documentClasses)
m_cachedResourceLoader = CachedResourceLoader::create(0);
m_cachedResourceLoader->setDocument(this);
#if ENABLE(LINK_PRERENDER)
m_prerenderer = Prerenderer::create(this);
#endif
#if ENABLE(TEXT_AUTOSIZING)
m_textAutosizer = TextAutosizer::create(this);
#endif
......
......@@ -180,10 +180,6 @@ class ScriptedAnimationController;
class MicroDataItemList;
#endif
#if ENABLE(LINK_PRERENDER)
class Prerenderer;
#endif
#if ENABLE(TEXT_AUTOSIZING)
class TextAutosizer;
#endif
......@@ -1153,10 +1149,6 @@ public:
IntSize initialViewportSize() const;
#endif
#if ENABLE(LINK_PRERENDER)
Prerenderer* prerenderer() { return m_prerenderer.get(); }
#endif
#if ENABLE(TEXT_AUTOSIZING)
TextAutosizer* textAutosizer() { return m_textAutosizer.get(); }
#endif
......@@ -1545,10 +1537,6 @@ private:
Timer<Document> m_pendingTasksTimer;
Vector<OwnPtr<Task> > m_pendingTasks;
#if ENABLE(LINK_PRERENDER)
OwnPtr<Prerenderer> m_prerenderer;
#endif
#if ENABLE(TEXT_AUTOSIZING)
OwnPtr<TextAutosizer> m_textAutosizer;
#endif
......
......@@ -252,11 +252,6 @@ namespace WebCore {
\
macro(webkitdeviceproximity) \
\
macro(webkitprerenderstart) \
macro(webkitprerenderstop) \
macro(webkitprerenderload) \
macro(webkitprerenderdomcontentloaded) \
\
macro(securitypolicyviolation) \
\
......
......@@ -349,28 +349,6 @@ void HTMLLinkElement::linkLoadingErrored()
dispatchEvent(Event::create(eventNames().errorEvent, false, false));
}
#if ENABLE(LINK_PRERENDER)
void HTMLLinkElement::didStartLinkPrerender()
{
dispatchEvent(Event::create(eventNames().webkitprerenderstartEvent, false, false));
}
void HTMLLinkElement::didStopLinkPrerender()
{
dispatchEvent(Event::create(eventNames().webkitprerenderstopEvent, false, false));
}
void HTMLLinkElement::didSendLoadForLinkPrerender()
{
dispatchEvent(Event::create(eventNames().webkitprerenderloadEvent, false, false));
}
void HTMLLinkElement::didSendDOMContentLoadedForLinkPrerender()
{
dispatchEvent(Event::create(eventNames().webkitprerenderdomcontentloadedEvent, false, false));
}
#endif
bool HTMLLinkElement::sheetLoaded()
{
if (!styleSheetIsLoading()) {
......
......@@ -91,12 +91,6 @@ private:
virtual void linkLoaded() OVERRIDE;
virtual void linkLoadingErrored() OVERRIDE;
#if ENABLE(LINK_PRERENDER)
virtual void didStartLinkPrerender() OVERRIDE;
virtual void didStopLinkPrerender() OVERRIDE;
virtual void didSendLoadForLinkPrerender() OVERRIDE;
virtual void didSendDOMContentLoadedForLinkPrerender() OVERRIDE;
#endif
bool isAlternate() const { return m_disabledState == Unset && m_relAttribute.m_isAlternate; }
......
......@@ -43,9 +43,6 @@ LinkRelAttribute::LinkRelAttribute()
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
#endif
#if ENABLE(LINK_PRERENDER)
, m_isLinkPrerender(false)
#endif
{
}
......@@ -58,9 +55,6 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
#endif
#if ENABLE(LINK_PRERENDER)
, m_isLinkPrerender(false)
#endif
{
if (equalIgnoringCase(rel, "stylesheet"))
m_isStyleSheet = true;
......@@ -102,10 +96,6 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
m_isLinkPrefetch = true;
else if (equalIgnoringCase(*it, "subresource"))
m_isLinkSubresource = true;
#endif
#if ENABLE(LINK_PRERENDER)
else if (equalIgnoringCase(*it, "prerender"))
m_isLinkPrerender = true;
#endif
}
}
......
......@@ -46,9 +46,6 @@ public:
bool m_isLinkPrefetch;
bool m_isLinkSubresource;
#endif
#if ENABLE(LINK_PRERENDER)
bool m_isLinkPrerender;
#endif
LinkRelAttribute();
explicit LinkRelAttribute(const String&);
......
......@@ -45,11 +45,6 @@
#include "Settings.h"
#include "StyleResolver.h"
#if ENABLE(LINK_PRERENDER)
#include "PrerenderHandle.h"
#include "Prerenderer.h"
#endif
namespace WebCore {
LinkLoader::LinkLoader(LinkLoaderClient* client)
......@@ -63,10 +58,6 @@ LinkLoader::~LinkLoader()
{
if (m_cachedLinkResource)
m_cachedLinkResource->removeClient(this);
#if ENABLE(LINK_PRERENDER)
if (m_prerenderHandle)
m_prerenderHandle->removeClient();
#endif
}
void LinkLoader::linkLoadTimerFired(Timer<LinkLoader>* timer)
......@@ -94,30 +85,6 @@ void LinkLoader::notifyFinished(CachedResource* resource)
m_cachedLinkResource = 0;
}
#if ENABLE(LINK_PRERENDER)
void LinkLoader::didStartPrerender()
{
m_client->didStartLinkPrerender();
}
void LinkLoader::didStopPrerender()
{
m_client->didStopLinkPrerender();
}
void LinkLoader::didSendLoadForPrerender()
{
m_client->didSendLoadForLinkPrerender();
}
void LinkLoader::didSendDOMContentLoadedForPrerender()
{
m_client->didSendDOMContentLoadedForLinkPrerender();
}
#endif
bool LinkLoader::loadLink(const LinkRelAttribute& relAttribute, const String& type,
const String& sizes, const KURL& href, Document* document)
{
......@@ -160,26 +127,11 @@ bool LinkLoader::loadLink(const LinkRelAttribute& relAttribute, const String& ty
}
#endif
#if ENABLE(LINK_PRERENDER)
if (relAttribute.m_isLinkPrerender) {
ASSERT(!m_prerenderHandle);
m_prerenderHandle = document->prerenderer()->render(this, href);
}
#endif
return true;
}
void LinkLoader::released()
{
// Only prerenders need treatment here; other links either use the CachedResource interface, or are notionally
// atomic (dns prefetch).
#if ENABLE(LINK_PRERENDER)
if (m_prerenderHandle) {
m_prerenderHandle->cancel();
m_prerenderHandle->removeClient();
m_prerenderHandle.clear();
}
#endif
}
}
......@@ -35,7 +35,6 @@
#include "CachedResourceClient.h"
#include "CachedResourceHandle.h"
#include "LinkLoaderClient.h"
#include "PrerenderClient.h"
#include "Timer.h"
#include <wtf/RefPtr.h>
......@@ -46,12 +45,8 @@ class Document;
class KURL;
struct LinkRelAttribute;
#if ENABLE(LINK_PRERENDER)
class PrerenderHandle;
#endif
// The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefetch and prerender.
class LinkLoader : public CachedResourceClient, public PrerenderClient {
// The LinkLoader can load link rel types icon, dns-prefetch, subresource and prefetch.
class LinkLoader : public CachedResourceClient {
public:
explicit LinkLoader(LinkLoaderClient*);
......@@ -59,14 +54,6 @@ public:
// from CachedResourceClient
virtual void notifyFinished(CachedResource*);
#if ENABLE(LINK_PRERENDER)
// from PrerenderClient
virtual void didStartPrerender() OVERRIDE;
virtual void didStopPrerender() OVERRIDE;
virtual void didSendLoadForPrerender() OVERRIDE;
virtual void didSendDOMContentLoadedForPrerender() OVERRIDE;
#endif
void released();
bool loadLink(const LinkRelAttribute&, const String& type, const String& sizes, const KURL&, Document*);
......@@ -80,10 +67,6 @@ private:
CachedResourceHandle<CachedResource> m_cachedLinkResource;
Timer<LinkLoader> m_linkLoadTimer;
Timer<LinkLoader> m_linkLoadingErrorTimer;
#if ENABLE(LINK_PRERENDER)
RefPtr<PrerenderHandle> m_prerenderHandle;
#endif
};
}
......
......@@ -42,13 +42,6 @@ public:
virtual void linkLoaded() = 0;
virtual void linkLoadingErrored() = 0;
// There is no notification for cancellation.
#if ENABLE(LINK_PRERENDER)
virtual void didStartLinkPrerender() = 0;
virtual void didStopLinkPrerender() = 0;
virtual void didSendLoadForLinkPrerender() = 0;
virtual void didSendDOMContentLoadedForLinkPrerender() = 0;
#endif
};
}
......
/*
* 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.