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

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 layout test by not dumping throttled FrameViews. 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 85951eeac95cb28c184177691aec2a62cc8ea4a1..eea396a633fef1a2a4c58709cbe9bb466ebb6100 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -87,6 +87,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