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

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

Issue 2272773002: Use intersection observer to control frame throttling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update LeakExpectations 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
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 c7bd628c362ceab76b710601987503f7c45c8cc6..efdafbb7fdf63f77b1607c3fe6f9da43f9fb6e09 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5213,6 +5213,8 @@ void Document::beginLifecycleUpdatesIfRenderingReady() {
// explicitly request them.
if (frame->isMainFrame())
frame->page()->chromeClient().beginLifecycleUpdates();
+ if (frame->view())
+ frame->view()->setupRenderThrottling();
esprehn 2016/11/05 03:01:11 Why do you need to call this here if you're also c
}
}

Powered by Google App Engine
This is Rietveld 408576698