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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2488343002: Move clearPaintInvalidatinFlags after subtree walk (Closed)
Patch Set: Created 4 years, 1 month 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index a14833d472ec46bb10f59166a022b91d4f396abb..5747a69017b996554d55aa7ac170728860dd2a00 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1149,16 +1149,17 @@ void LayoutObject::invalidateTreeIfNeeded(
PaintInvalidationState newPaintInvalidationState(paintInvalidationState,
*this);
- if (mayNeedPaintInvalidationSubtree())
+ if (mayNeedPaintInvalidationSubtree()) {
newPaintInvalidationState
.setForceSubtreeInvalidationCheckingWithinContainer();
+ }
PaintInvalidationReason reason =
invalidatePaintIfNeeded(newPaintInvalidationState);
- clearPaintInvalidationFlags();
-
newPaintInvalidationState.updateForChildren(reason);
invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
+
+ clearPaintInvalidationFlags();
}
DISABLE_CFI_PERF

Powered by Google App Engine
This is Rietveld 408576698