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

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

Issue 2495893002: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Suppress main thread scrolling invalidation failures 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 da487f6d549f2634cc1ee0e63bf9756d02b07eee..05643deba378b8642aee9c3e9e8619f8f2115a49 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1469,6 +1469,11 @@ StyleDifference LayoutObject::adjustStyleDifference(
// for changed paint property or paint order. Raster invalidation will be
// issued if needed during paint.
ObjectPaintInvalidator(*this).slowSetPaintingLayerNeedsRepaint();
+
+ // When transform, opacity, etc. change, paint properties will also change
+ // so we need to mark this object as needing an update.
+ // TODO(pdr): Also update in the non-spv2 codepath?
+ getMutableForPainting().setNeedsPaintPropertyUpdate();
}
} else {
// If transform changed, and the layer does not paint into its own separate
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698