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

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

Issue 1126883002: Change all one-off lifecycle callers to FrameView::updateLayoutAndStyleForPainting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 78404b38f3a99daa61247412886f55ed7d4e4220..0531bfa6d182baa1126bb8916edb8aeb15e8cb66 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -93,7 +93,7 @@ bool LayoutView::hitTest(const HitTestRequest& request, const HitTestLocation& l
// that are higher up in the call stack, leading to crashes.
// Note that Document::updateLayout calls its parent's updateLayout.
// FIXME: It should be the caller's responsibility to ensure an up-to-date layout.
- frameView()->updateLayoutAndStyleIfNeededRecursive();
+ toLocalFrame(frameView()->page()->mainFrame())->view()->updateLayoutAndStyleForPainting();
commitPendingSelection();
bool hitLayer = layer()->hitTest(request, location, result);

Powered by Google App Engine
This is Rietveld 408576698