Chromium Code Reviews| 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()); |
| } |