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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2578393002: Update paint property subtrees on paint offset changes (Closed)
Patch Set: Created 4 years 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/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index daad53c7bd927931e14cb6edae7f2f62659eb14a..dc65ccae69b4a1fd97fe66e7016d7fd23657e8a3 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -921,6 +921,11 @@ void PaintPropertyTreeBuilder::updateContextForBoxPosition(
-toLayoutBox(parentRow)->physicalLocation());
}
}
+
+ // Many paint properties depend on paint offset so we force an update of
+ // the entire subtree on paint offset changes.
+ if (object.previousPaintOffset() != context.current.paintOffset)
+ context.forceSubtreeUpdate = true;
pdr. 2016/12/16 03:24:09 This is the main change in this patch. Instead of
}
void PaintPropertyTreeBuilder::updatePropertiesForSelf(

Powered by Google App Engine
This is Rietveld 408576698