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

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

Issue 2749403004: Update subtree paint properties when preserve-3d changes (Closed)
Patch Set: Created 3 years, 9 months 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 | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp » ('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 e561c4bc3cad90e9b8d1fdad4ef17345dc2030fe..9c470b36f1a53bf354e9b2972c291b3dbb1d6e44 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1932,6 +1932,12 @@ void LayoutObject::styleDidChange(StyleDifference diff,
if (oldStyle && oldStyle->styleType() == PseudoIdNone)
applyPseudoStyleChanges(*oldStyle);
+
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && oldStyle &&
+ oldStyle->usedTransformStyle3D() != styleRef().usedTransformStyle3D()) {
+ // Change of transform-style may affect descendant transform property nodes.
+ setSubtreeNeedsPaintPropertyUpdate();
+ }
}
void LayoutObject::applyPseudoStyleChanges(const ComputedStyle& oldStyle) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698