Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1922793002: Move deferred commit logic from WebViewImpl to Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 9c91244d1049b30c2bd74c8543be6188983ccf52..6eaf477f17f491b133dc519110e145bfe55eba67 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -180,12 +180,6 @@ void FrameLoaderClientImpl::documentElementAvailable()
{
if (m_webFrame->client())
m_webFrame->client()->didCreateDocumentElement(m_webFrame);
-
- if (m_webFrame->parent())
- return;
-
- if (m_webFrame->viewImpl())
- m_webFrame->viewImpl()->mainFrameDocumentElementAvailable();
}
void FrameLoaderClientImpl::runScriptsAtDocumentElementAvailable()
@@ -236,16 +230,6 @@ void FrameLoaderClientImpl::didUpdateCurrentHistoryItem()
m_webFrame->client()->didUpdateCurrentHistoryItem();
}
-// TODO(dglazkov): Can this be plumbing be streamlined out?
-void FrameLoaderClientImpl::didRemoveAllPendingStylesheet()
-{
- if (m_webFrame->parent())
- return;
-
- if (WebViewImpl* webview = m_webFrame->viewImpl())
- webview->didRemoveAllPendingStylesheetsInMainFrameDocument();
-}
-
bool FrameLoaderClientImpl::allowScript(bool enabledPerSettings)
{
if (m_webFrame->contentSettingsClient())
@@ -438,11 +422,6 @@ void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader,
void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad()
{
- if (!m_webFrame->parent()) {
- if (WebViewImpl* webview = m_webFrame->viewImpl())
- webview->didFinishMainFrameDocumentLoad();
- }
-
// TODO(dglazkov): Sadly, workers are WebFrameClients, and they can totally
// destroy themselves when didFinishDocumentLoad is invoked, and in turn destroy
// the fake WebLocalFrame that they create, which means that you should not
@@ -985,12 +964,6 @@ void FrameLoaderClientImpl::dispatchWillInsertBody()
{
if (m_webFrame->client())
m_webFrame->client()->willInsertBody(m_webFrame);
Bryan McQuade 2016/04/26 14:28:34 it's great that we're reducing the callbacks from
-
- if (m_webFrame->parent())
- return;
-
- if (m_webFrame->viewImpl())
- m_webFrame->viewImpl()->willInsertMainFrameDocumentBody();
}
PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerProvider()
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698