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

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: Update naming 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..cad6a6b303110cff6539eb8df398185d5b66dee3 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -130,9 +130,14 @@ void RenderSVGModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
// FIXME: Should share code with RenderBox::invalidateTreeIfNeeded().
ASSERT(!needsLayout());
- if (!shouldCheckForPaintInvalidation())
+ if (!shouldCheckForSelfOrChildPaintInvalidation())
return;
+ if (!shouldCheckForPaintInvalidation()) {
+ RenderObject::invalidateTreeIfNeeded(paintInvalidationState);
+ return;
+ }
+
ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
const LayoutRect oldPaintInvalidationRect = previousPaintInvalidationRect();
« Source/core/rendering/RenderObject.cpp ('K') | « Source/core/rendering/svg/RenderSVGBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698