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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.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/LayoutSVGRoot.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
index 80e7f06ee69feb3e168863557e54114fd564b4dc..7cd271a0483aeeac1d94181c48fa79978e263e4c 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
@@ -161,8 +161,11 @@ void LayoutSVGRoot::layout() {
// content may have been exposed, so mark the entire subtree as needing paint
// invalidation checking. (It is only somewhat by coincidence that this
// condition happens to be the same as the one for viewport changes.)
- if (viewportMayHaveChanged)
+ if (viewportMayHaveChanged) {
setMayNeedPaintInvalidationSubtree();
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
+ setNeedsPaintPropertyUpdate();
+ }
SVGSVGElement* svg = toSVGSVGElement(node());
ASSERT(svg);

Powered by Google App Engine
This is Rietveld 408576698