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

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

Issue 999033002: Advance document lifecycle to CompositingClean prior to hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add assert and allow CompositingClean change to InPreLayout Created 5 years, 9 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 6f78b62d2a3d951b85f995676a60e33b8caa4b2d..df2b76be985a245625a563307978a768e4eba8eb 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -97,7 +97,9 @@ bool LayoutView::hitTest(const HitTestRequest& request, const HitTestLocation& l
// 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();
+ compositor()->updateIfNeededRecursive();
commitPendingSelection();
+ ASSERT(document().lifecycle().state() >= DocumentLifecycle::CompositingClean);
leviw_travelin_and_unemployed 2015/03/12 20:09:32 This assert should go somewhere deeper in Blink, l
qiankun 2015/03/13 03:23:10 Done.
bool hitLayer = layer()->hitTest(request, location, result);
« Source/core/dom/DocumentLifecycle.cpp ('K') | « Source/core/dom/DocumentLifecycle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698