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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1364063007: Throttle rendering pipeline for invisible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment. Created 5 years, 2 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
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 1b48b389bdfd4f4ac5f783b9b39200015bfbf4cf..0c871c699d83511bae8358cf9a83329bc7faffa8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -86,6 +86,7 @@ bool LayoutView::hitTest(HitTestResult& result)
// into a child document, it could trigger a layout on the parent document, which can destroy PaintLayer
// that are higher up in the call stack, leading to crashes.
// Note that Document::updateLayout calls its parent's updateLayout.
+ DocumentLifecycle::PreventThrottlingScope preventThrottling(document().lifecycle());
frameView()->updateLifecycleToCompositingCleanPlusScrolling();
return hitTestNoLifecycleUpdate(result);
}

Powered by Google App Engine
This is Rietveld 408576698