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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2647533002: Force compositing inputs to be clean for getBoundingClientRect (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index d5ea539ee3527b4a3f90bb8e3b32abb76b499bdf..9372ccbaad52318f96d6660172732539e012025e 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1120,6 +1120,9 @@ IntRect Element::visibleBoundsInVisualViewport() const {
void Element::clientQuads(Vector<FloatQuad>& quads) {
document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
+ FrameView* view = document().view();
flackr 2017/01/18 21:11:10 nit: We tend to use the following style to scope c
smcgruer 2017/01/18 21:17:13 Done.
+ if (view)
+ view->updateLifecycleToCompositingCleanPlusScrolling();
flackr 2017/01/18 21:11:10 Was this call necessary? Does updateAllLifecyclePh
smcgruer 2017/01/18 21:17:13 I was aiming for minimal lifecycle update. updateA
flackr 2017/01/18 21:38:05 Oops, you are right, this function seems to advanc
LayoutObject* elementLayoutObject = layoutObject();
if (!elementLayoutObject)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698