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

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

Issue 601093002: Move SVG container paint code to SVGContainerPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/RenderSVGResourceMarker.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceMarker.cpp b/Source/core/rendering/svg/RenderSVGResourceMarker.cpp
index d338016966fc9792ba3772d459d14c450716b86d..84285fe8e0faebf687c14d82ee8244b6cf17a023 100644
--- a/Source/core/rendering/svg/RenderSVGResourceMarker.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceMarker.cpp
@@ -70,12 +70,6 @@ void RenderSVGResourceMarker::removeClientFromCache(RenderObject* client, bool m
markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation);
}
-void RenderSVGResourceMarker::applyViewportClip(PaintInfo& paintInfo)
-{
- if (SVGRenderSupport::isOverflowHidden(this))
- paintInfo.context->clip(m_viewport);
-}
-
FloatRect RenderSVGResourceMarker::markerBoundaries(const AffineTransform& markerTransformation) const
{
FloatRect coordinates = RenderSVGContainer::paintInvalidationRectInLocalCoordinates();
@@ -146,6 +140,10 @@ void RenderSVGResourceMarker::draw(PaintInfo& paintInfo, const AffineTransform&
stateSaver.save();
info.applyTransform(transform, false);
}
+
+ if (SVGRenderSupport::isOverflowHidden(this))
+ info.context->clip(m_viewport);
fs 2014/09/25 11:00:45 If transform.isIdentity(), this clip could now "le
pdr. 2014/10/08 20:45:31 Previously this code has an isIndentity check a co
fs 2014/10/09 07:02:03 The isIdentity-check just moved into PaintInfo::ap
+
RenderSVGContainer::paint(info, IntPoint());
}

Powered by Google App Engine
This is Rietveld 408576698