<https://webkit.org/b/132098>
This API was added to WK2 back in 2011 but never actually used.
Reviewed by Anders Carlsson.
* Shared/WebPageCreationParameters.cpp:
(WebKit::WebPageCreationParameters::encode):
(WebKit::WebPageCreationParameters::decode):
* Shared/WebPageCreationParameters.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageSetMemoryCacheClientCallsEnabled): Deleted.
* UIProcess/API/C/WKPage.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::creationParameters):
(WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled): Deleted.
* UIProcess/WebPageProxy.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::setMemoryCacheMessagesEnabled): Deleted.
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167742
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-04-23 Andreas Kling <akling@apple.com>
+
+ Remove unused WKPageSetMemoryCacheClientCallsEnabled API.
+ <https://webkit.org/b/132098>
+
+ This API was added to WK2 back in 2011 but never actually used.
+
+ Reviewed by Anders Carlsson.
+
+ * Shared/WebPageCreationParameters.cpp:
+ (WebKit::WebPageCreationParameters::encode):
+ (WebKit::WebPageCreationParameters::decode):
+ * Shared/WebPageCreationParameters.h:
+ * UIProcess/API/C/WKPage.cpp:
+ (WKPageSetMemoryCacheClientCallsEnabled): Deleted.
+ * UIProcess/API/C/WKPage.h:
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::WebPageProxy):
+ (WebKit::WebPageProxy::creationParameters):
+ (WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled): Deleted.
+ * UIProcess/WebPageProxy.h:
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::WebPage):
+ (WebKit::WebPage::setMemoryCacheMessagesEnabled): Deleted.
+ * WebProcess/WebPage/WebPage.h:
+ * WebProcess/WebPage/WebPage.messages.in:
+
2014-04-23 Simon Fraser <simon.fraser@apple.com>
[iOS WK2] Make -webkit-overflow-scrolling:touch work
encoder << drawsBackground;
encoder << drawsTransparentBackground;
encoder << underlayColor;
- encoder << areMemoryCacheClientCallsEnabled;
encoder << useFixedLayout;
encoder << fixedLayoutSize;
encoder.encodeEnum(paginationMode);
return false;
if (!decoder.decode(parameters.underlayColor))
return false;
- if (!decoder.decode(parameters.areMemoryCacheClientCallsEnabled))
- return false;
if (!decoder.decode(parameters.useFixedLayout))
return false;
if (!decoder.decode(parameters.fixedLayoutSize))
WebCore::Color underlayColor;
- bool areMemoryCacheClientCallsEnabled;
-
bool useFixedLayout;
WebCore::IntSize fixedLayoutSize;
return toImpl(pageRef)->estimatedProgress();
}
-void WKPageSetMemoryCacheClientCallsEnabled(WKPageRef pageRef, bool memoryCacheClientCallsEnabled)
-{
- toImpl(pageRef)->setMemoryCacheClientCallsEnabled(memoryCacheClientCallsEnabled);
-}
-
WKStringRef WKPageCopyUserAgent(WKPageRef pageRef)
{
return toCopiedAPI(toImpl(pageRef)->userAgent());
WK_EXPORT uint64_t WKPageGetRenderTreeSize(WKPageRef page);
-WK_EXPORT void WKPageSetMemoryCacheClientCallsEnabled(WKPageRef page, bool memoryCacheClientCallsEnabled);
-
WK_EXPORT WKInspectorRef WKPageGetInspector(WKPageRef page);
WK_EXPORT WKVibrationRef WKPageGetVibration(WKPageRef page);
, m_layerHostingMode(LayerHostingMode::InProcess)
, m_drawsBackground(true)
, m_drawsTransparentBackground(false)
- , m_areMemoryCacheClientCallsEnabled(true)
, m_useFixedLayout(false)
, m_suppressScrollbarAnimations(false)
, m_paginationMode(Pagination::Unpaginated)
m_pageZoomFactor = zoomFactor;
}
-void WebPageProxy::setMemoryCacheClientCallsEnabled(bool memoryCacheClientCallsEnabled)
-{
- if (!isValid())
- return;
-
- if (m_areMemoryCacheClientCallsEnabled == memoryCacheClientCallsEnabled)
- return;
-
- m_areMemoryCacheClientCallsEnabled = memoryCacheClientCallsEnabled;
- m_process->send(Messages::WebPage::SetMemoryCacheMessagesEnabled(memoryCacheClientCallsEnabled), m_pageID);
-}
-
void WebPageProxy::findStringMatches(const String& string, FindOptions options, unsigned maxMatchCount)
{
if (string.isEmpty()) {
parameters.drawsBackground = m_drawsBackground;
parameters.drawsTransparentBackground = m_drawsTransparentBackground;
parameters.underlayColor = m_underlayColor;
- parameters.areMemoryCacheClientCallsEnabled = m_areMemoryCacheClientCallsEnabled;
parameters.useFixedLayout = m_useFixedLayout;
parameters.fixedLayoutSize = m_fixedLayoutSize;
parameters.suppressScrollbarAnimations = m_suppressScrollbarAnimations;
void pageScaleFactorDidChange(double);
void pageZoomFactorDidChange(double);
- void setMemoryCacheClientCallsEnabled(bool);
-
// Find.
void findString(const String&, FindOptions, unsigned maxMatchCount);
void findStringMatches(const String&, FindOptions, unsigned maxMatchCount);
WebCore::Color m_underlayColor;
WebCore::Color m_pageExtendedBackgroundColor;
- bool m_areMemoryCacheClientCallsEnabled;
-
bool m_useFixedLayout;
WebCore::IntSize m_fixedLayoutSize;
setPageLength(parameters.pageLength);
setGapBetweenPages(parameters.gapBetweenPages);
- setMemoryCacheMessagesEnabled(parameters.areMemoryCacheClientCallsEnabled);
-
// If the page is created off-screen, its visibilityState should be prerender.
m_page->setViewState(m_viewState);
if (!isVisible())
ASSERT(!m_isRunningModal);
}
-void WebPage::setMemoryCacheMessagesEnabled(bool memoryCacheMessagesEnabled)
-{
- m_page->setMemoryCacheClientCallsEnabled(memoryCacheMessagesEnabled);
-}
-
bool WebPage::canHandleRequest(const WebCore::ResourceRequest& request)
{
if (SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(request.url().protocol()))
void setDeviceScaleFactor(float);
float deviceScaleFactor() const;
- void setMemoryCacheMessagesEnabled(bool);
-
void forceRepaintWithoutCallback();
void unmarkAllMisspellings();
SetMediaVolume(float volume)
SetMayStartMediaWhenInWindow(bool mayStartMedia)
- SetMemoryCacheMessagesEnabled(bool memoryCacheMessagesEnabled)
-
// FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
// any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
Dummy() -> (bool dummyReturn)