diff options
Diffstat (limited to 'WebCore/rendering/RenderSVGResourceClipper.cpp')
-rw-r--r-- | WebCore/rendering/RenderSVGResourceClipper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/WebCore/rendering/RenderSVGResourceClipper.cpp b/WebCore/rendering/RenderSVGResourceClipper.cpp index e7b9fbb..25ed1c3 100644 --- a/WebCore/rendering/RenderSVGResourceClipper.cpp +++ b/WebCore/rendering/RenderSVGResourceClipper.cpp @@ -151,9 +151,7 @@ bool RenderSVGResourceClipper::pathOnlyClipping(GraphicsContext* context, const // The SVG specification wants us to clip everything, if clip-path doesn't have a child. if (clipPath.isEmpty()) clipPath.addRect(FloatRect()); - context->beginPath(); - context->addPath(clipPath); - context->clipPath(clipRule); + context->clipPath(clipPath, clipRule); return true; } |