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

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

Issue 1246363002: Avoid updating compositor animations in hitTest path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: revert advancing lifecycle to CompositingClean prior to hit testing Created 5 years, 4 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: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 6d382e74a7b20b63b47724a53c4b8287df0b300c..0c7b2e9d226ba97d4d96010eebed694b02b9039c 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -87,7 +87,7 @@ bool LayoutView::hitTest(HitTestResult& result)
// into a child document, it could trigger a layout on the parent document, which can destroy DeprecatedPaintLayer
// that are higher up in the call stack, leading to crashes.
// Note that Document::updateLayout calls its parent's updateLayout.
- frameView()->updateLifecycleToCompositingCleanPlusScrolling();
+ frameView()->frame().localFrameRoot()->view()->updateStyleAndLayoutIfNeededRecursive();
return hitTestNoLifecycleUpdate(result);
}

Powered by Google App Engine
This is Rietveld 408576698