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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.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/LayoutSVGViewportContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp
index ca7a99a6d1ff0009fa115671e74ac18adec7d023..a7438c2f6a0eb5a13542a7eaae594d6b26b611df 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp
@@ -66,6 +66,11 @@ void LayoutSVGViewportContainer::calcViewport() {
void LayoutSVGViewportContainer::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