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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2401713003: Turn on render throttling for iframes with pending sheets. (Closed)
Patch Set: ojan@ cr. Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index efdafbb7fdf63f77b1607c3fe6f9da43f9fb6e09..04d712253f6bacf1f5c64106a80121b4e7a309b3 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5205,17 +5205,7 @@ void Document::beginLifecycleUpdatesIfRenderingReady() {
return;
if (!isRenderingReady())
return;
- if (LocalFrame* frame = this->frame()) {
- // Avoid pumping frames for the initially empty document.
- if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad())
- return;
- // The compositor will "defer commits" for the main frame until we
- // explicitly request them.
- if (frame->isMainFrame())
- frame->page()->chromeClient().beginLifecycleUpdates();
- if (frame->view())
- frame->view()->setupRenderThrottling();
- }
+ view()->beginLifecycleUpdates();
}
Vector<IconURL> Document::iconURLs(int iconTypesMask) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698