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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index a707e836c4c8019810e10edde6ed38fad323ede4..730d8b7fd963e56e5794772a04ed92b0499dbb1d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -503,7 +503,6 @@ void LayoutBoxModelObject::invalidateTreeIfNeeded(
LayoutPoint previousLocation = paintInvalidator.previousLocationInBacking();
PaintInvalidationReason reason =
invalidatePaintIfNeeded(newPaintInvalidationState);
- clearPaintInvalidationFlags();
if (previousLocation != paintInvalidator.previousLocationInBacking()) {
newPaintInvalidationState
@@ -535,6 +534,8 @@ void LayoutBoxModelObject::invalidateTreeIfNeeded(
newPaintInvalidationState.updateForChildren(reason);
invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
+
+ clearPaintInvalidationFlags();
}
void LayoutBoxModelObject::addOutlineRectsForNormalChildren(

Powered by Google App Engine
This is Rietveld 408576698