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

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

Issue 2584653002: Force subtree paint property updates on local border box changes (Closed)
Patch Set: fix bugs 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..72018f4119419998cde1405e411bd199a7dc2f22 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -526,10 +526,10 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(
// we don't need them at the moment.
if (!object.isBox() && !object.hasLayer()) {
if (auto* properties = object.getMutableForPainting().paintProperties())
- properties->clearLocalBorderBoxProperties();
+ context.forceSubtreeUpdate |= properties->clearLocalBorderBoxProperties();
} else {
auto& properties = object.getMutableForPainting().ensurePaintProperties();
- properties.updateLocalBorderBoxProperties(
+ context.forceSubtreeUpdate |= properties.updateLocalBorderBoxProperties(
context.current.paintOffset, context.current.transform,
context.current.clip, context.currentEffect, context.current.scroll);
}

Powered by Google App Engine
This is Rietveld 408576698