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

Unified Diff: Source/core/rendering/svg/RenderSVGModelObject.cpp

Issue 398343003: Use unified invalidation path for repaint-only style changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Source/core/rendering/svg/RenderSVGModelObject.cpp
diff --git a/Source/core/rendering/svg/RenderSVGModelObject.cpp b/Source/core/rendering/svg/RenderSVGModelObject.cpp
index 2cdd2d5e6e8663080710dfc4b367edc3cc2cc9a4..367338d2b4a78b81a4c56533ea86173f81d2b391 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -133,6 +133,11 @@ void RenderSVGModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
if (!shouldCheckForPaintInvalidation())
return;
+ if (!shouldCheckForSelfPaintInvalidation()) {
+ RenderObject::invalidateTreeIfNeeded(paintInvalidationState);
+ return;
+ }
+
ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
const LayoutRect oldPaintInvalidationRect = previousPaintInvalidationRect();
« Source/core/rendering/RenderObject.cpp ('K') | « Source/core/rendering/RenderObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698