https://bugs.webkit.org/show_bug.cgi?id=135177
<rdar://problem/
17764847>
Reviewed by Dan Bernstein.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::willChangeCurrentHistoryItemForMainFrame):
(WebKit::WebPageProxy::willChangeCurrentHistoryItem): Deleted.
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::willChangeCurrentHistoryItem):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::willChangeCurrentHistoryItemForMainFrame):
(WebKit::WebPage::willChangeCurrentHistoryItem): Deleted.
* WebProcess/WebPage/WebPage.h:
Rename WillChangeCurrentHistoryItem to WillChangeCurrentHistoryItemForMainFrame.
Only send it when the current history item for the main frame changes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@171471
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-07-23 Timothy Horton <timothy_horton@apple.com>
+
+ REGRESSION (r171239): Much more time spent taking snapshots during the PLT
+ https://bugs.webkit.org/show_bug.cgi?id=135177
+ <rdar://problem/17764847>
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::willChangeCurrentHistoryItemForMainFrame):
+ (WebKit::WebPageProxy::willChangeCurrentHistoryItem): Deleted.
+ * UIProcess/WebPageProxy.h:
+ * UIProcess/WebPageProxy.messages.in:
+ * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+ (WebKit::WebFrameLoaderClient::willChangeCurrentHistoryItem):
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::willChangeCurrentHistoryItemForMainFrame):
+ (WebKit::WebPage::willChangeCurrentHistoryItem): Deleted.
+ * WebProcess/WebPage/WebPage.h:
+ Rename WillChangeCurrentHistoryItem to WillChangeCurrentHistoryItemForMainFrame.
+ Only send it when the current history item for the main frame changes.
+
2014-07-23 Ryuan Choi <ryuan.choi@samsung.com>
[EFL] EWebKit2.h should contain version information
m_isShowingNavigationGestureSnapshot = false;
}
-void WebPageProxy::willChangeCurrentHistoryItem()
+void WebPageProxy::willChangeCurrentHistoryItemForMainFrame()
{
recordNavigationSnapshot();
}
void didBlockInsecurePluginVersion(const String& mimeType, const String& pluginURLString, const String& frameURLString, const String& pageURLString, bool replacementObscured);
#endif // ENABLE(NETSCAPE_PLUGIN_API)
void setCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents) { m_canShortCircuitHorizontalWheelEvents = canShortCircuitHorizontalWheelEvents; }
- void willChangeCurrentHistoryItem();
+ void willChangeCurrentHistoryItemForMainFrame();
void reattachToWebProcess();
uint64_t reattachToWebProcessWithItem(WebBackForwardListItem*);
DidFinishLoadForQuickLookDocumentInMainFrame(WebKit::QuickLookDocumentData data)
#endif
- WillChangeCurrentHistoryItem()
+ WillChangeCurrentHistoryItemForMainFrame()
#if USE(CONTENT_FILTERING)
ContentFilterDidBlockLoadForFrame(WebCore::ContentFilter contentFilter, uint64_t frameID)
WebPage* webPage = m_frame->page();
if (!webPage)
return;
+ if (!m_frame->isMainFrame())
+ return;
- webPage->willChangeCurrentHistoryItem();
+ webPage->willChangeCurrentHistoryItemForMainFrame();
}
#if USE(CONTENT_FILTERING)
updateMainFrameScrollOffsetPinning();
}
-void WebPage::willChangeCurrentHistoryItem()
+void WebPage::willChangeCurrentHistoryItemForMainFrame()
{
- send(Messages::WebPageProxy::WillChangeCurrentHistoryItem());
+ send(Messages::WebPageProxy::WillChangeCurrentHistoryItemForMainFrame());
}
} // namespace WebKit
void didChangeScrollOffsetForFrame(WebCore::Frame*);
- void willChangeCurrentHistoryItem();
+ void willChangeCurrentHistoryItemForMainFrame();
private:
WebPage(uint64_t pageID, const WebPageCreationParameters&);