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

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

Issue 401883004: Extract RenderSVGModelObject::invalidatePaintIfNeeded() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline 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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGModelObject.cpp
diff --git a/Source/core/rendering/svg/RenderSVGModelObject.cpp b/Source/core/rendering/svg/RenderSVGModelObject.cpp
index 484455228b728717a609267b78b66b37c42f8443..8484ea4fbd2e30f0a4c664844dd4550a0d415306 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -133,6 +133,13 @@ void RenderSVGModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
if (!shouldCheckForPaintInvalidation())
return;
+ invalidatePaintIfNeeded(paintInvalidationState);
+
+ RenderObject::invalidateTreeIfNeeded(paintInvalidationState);
+}
+
+void RenderSVGModelObject::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState)
+{
ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
const LayoutRect oldPaintInvalidationRect = previousPaintInvalidationRect();
@@ -151,14 +158,10 @@ void RenderSVGModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
// If we are set to do a full paint invalidation that means the RenderView will be
// issue paint invalidations. We can then skip issuing of paint invalidations for the child
// renderers as they'll be covered by the RenderView.
- if (view()->doingFullRepaint()) {
- RenderObject::invalidateTreeIfNeeded(paintInvalidationState);
+ if (view()->doingFullRepaint())
return;
- }
- invalidatePaintIfNeeded(paintInvalidationState.paintInvalidationContainer(), oldPaintInvalidationRect, oldPositionFromPaintInvalidationContainer, paintInvalidationState);
-
- RenderObject::invalidateTreeIfNeeded(paintInvalidationState);
+ RenderObject::invalidatePaintIfNeeded(paintInvalidationState.paintInvalidationContainer(), oldPaintInvalidationRect, oldPositionFromPaintInvalidationContainer, paintInvalidationState);
}
} // namespace blink
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698