Changeset 167742 in webkit
- Timestamp:
- Apr 23, 2014 8:56:09 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r167740 r167742 1 2014-04-23 Andreas Kling <akling@apple.com> 2 3 Remove unused WKPageSetMemoryCacheClientCallsEnabled API. 4 <https://webkit.org/b/132098> 5 6 This API was added to WK2 back in 2011 but never actually used. 7 8 Reviewed by Anders Carlsson. 9 10 * Shared/WebPageCreationParameters.cpp: 11 (WebKit::WebPageCreationParameters::encode): 12 (WebKit::WebPageCreationParameters::decode): 13 * Shared/WebPageCreationParameters.h: 14 * UIProcess/API/C/WKPage.cpp: 15 (WKPageSetMemoryCacheClientCallsEnabled): Deleted. 16 * UIProcess/API/C/WKPage.h: 17 * UIProcess/WebPageProxy.cpp: 18 (WebKit::WebPageProxy::WebPageProxy): 19 (WebKit::WebPageProxy::creationParameters): 20 (WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled): Deleted. 21 * UIProcess/WebPageProxy.h: 22 * WebProcess/WebPage/WebPage.cpp: 23 (WebKit::WebPage::WebPage): 24 (WebKit::WebPage::setMemoryCacheMessagesEnabled): Deleted. 25 * WebProcess/WebPage/WebPage.h: 26 * WebProcess/WebPage/WebPage.messages.in: 27 1 28 2014-04-23 Simon Fraser <simon.fraser@apple.com> 2 29 -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.cpp
r167481 r167742 42 42 encoder << drawsTransparentBackground; 43 43 encoder << underlayColor; 44 encoder << areMemoryCacheClientCallsEnabled;45 44 encoder << useFixedLayout; 46 45 encoder << fixedLayoutSize; … … 95 94 return false; 96 95 if (!decoder.decode(parameters.underlayColor)) 97 return false;98 if (!decoder.decode(parameters.areMemoryCacheClientCallsEnabled))99 96 return false; 100 97 if (!decoder.decode(parameters.useFixedLayout)) -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.h
r167481 r167742 70 70 WebCore::Color underlayColor; 71 71 72 bool areMemoryCacheClientCallsEnabled;73 74 72 bool useFixedLayout; 75 73 WebCore::IntSize fixedLayoutSize; -
trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp
r167519 r167742 296 296 } 297 297 298 void WKPageSetMemoryCacheClientCallsEnabled(WKPageRef pageRef, bool memoryCacheClientCallsEnabled)299 {300 toImpl(pageRef)->setMemoryCacheClientCallsEnabled(memoryCacheClientCallsEnabled);301 }302 303 298 WKStringRef WKPageCopyUserAgent(WKPageRef pageRef) 304 299 { -
trunk/Source/WebKit2/UIProcess/API/C/WKPage.h
r167172 r167742 109 109 WK_EXPORT uint64_t WKPageGetRenderTreeSize(WKPageRef page); 110 110 111 WK_EXPORT void WKPageSetMemoryCacheClientCallsEnabled(WKPageRef page, bool memoryCacheClientCallsEnabled);112 113 111 WK_EXPORT WKInspectorRef WKPageGetInspector(WKPageRef page); 114 112 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r167698 r167742 284 284 , m_drawsBackground(true) 285 285 , m_drawsTransparentBackground(false) 286 , m_areMemoryCacheClientCallsEnabled(true)287 286 , m_useFixedLayout(false) 288 287 , m_suppressScrollbarAnimations(false) … … 2033 2032 } 2034 2033 2035 void WebPageProxy::setMemoryCacheClientCallsEnabled(bool memoryCacheClientCallsEnabled)2036 {2037 if (!isValid())2038 return;2039 2040 if (m_areMemoryCacheClientCallsEnabled == memoryCacheClientCallsEnabled)2041 return;2042 2043 m_areMemoryCacheClientCallsEnabled = memoryCacheClientCallsEnabled;2044 m_process->send(Messages::WebPage::SetMemoryCacheMessagesEnabled(memoryCacheClientCallsEnabled), m_pageID);2045 }2046 2047 2034 void WebPageProxy::findStringMatches(const String& string, FindOptions options, unsigned maxMatchCount) 2048 2035 { … … 4229 4216 parameters.drawsTransparentBackground = m_drawsTransparentBackground; 4230 4217 parameters.underlayColor = m_underlayColor; 4231 parameters.areMemoryCacheClientCallsEnabled = m_areMemoryCacheClientCallsEnabled;4232 4218 parameters.useFixedLayout = m_useFixedLayout; 4233 4219 parameters.fixedLayoutSize = m_fixedLayoutSize; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r167735 r167742 812 812 void pageZoomFactorDidChange(double); 813 813 814 void setMemoryCacheClientCallsEnabled(bool);815 816 814 // Find. 817 815 void findString(const String&, FindOptions, unsigned maxMatchCount); … … 1522 1520 WebCore::Color m_pageExtendedBackgroundColor; 1523 1521 1524 bool m_areMemoryCacheClientCallsEnabled;1525 1526 1522 bool m_useFixedLayout; 1527 1523 WebCore::IntSize m_fixedLayoutSize; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r167738 r167742 391 391 setGapBetweenPages(parameters.gapBetweenPages); 392 392 393 setMemoryCacheMessagesEnabled(parameters.areMemoryCacheClientCallsEnabled);394 395 393 // If the page is created off-screen, its visibilityState should be prerender. 396 394 m_page->setViewState(m_viewState); … … 3732 3730 } 3733 3731 3734 void WebPage::setMemoryCacheMessagesEnabled(bool memoryCacheMessagesEnabled)3735 {3736 m_page->setMemoryCacheClientCallsEnabled(memoryCacheMessagesEnabled);3737 }3738 3739 3732 bool WebPage::canHandleRequest(const WebCore::ResourceRequest& request) 3740 3733 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r167738 r167742 669 669 float deviceScaleFactor() const; 670 670 671 void setMemoryCacheMessagesEnabled(bool);672 673 671 void forceRepaintWithoutCallback(); 674 672 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
r167735 r167742 272 272 SetMayStartMediaWhenInWindow(bool mayStartMedia) 273 273 274 SetMemoryCacheMessagesEnabled(bool memoryCacheMessagesEnabled)275 276 274 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require 277 275 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
Note: See TracChangeset
for help on using the changeset viewer.