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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Fix transform underinvalidation, skip several spinvalidation skips 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/layout/svg/LayoutSVGTransformableContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
index 9ce3b01a0e1ed8c65df73d84ace9bab582444e81..8d1af96c79bd28dcf912a58f18c4695c8e8f6268 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
@@ -67,6 +67,11 @@ bool LayoutSVGTransformableContainer::isChildAllowed(
void LayoutSVGTransformableContainer::setNeedsTransformUpdate() {
setMayNeedPaintInvalidationSubtree();
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
+ // The transform paint property relies on the SVG transform being up-to-date
+ // (see: PaintPropertyTreeBuilder::updateTransformForNonRootSVG).
+ setNeedsPaintPropertyUpdate();
+ }
m_needsTransformUpdate = true;
}

Powered by Google App Engine
This is Rietveld 408576698