summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/SVGImageBufferTools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/SVGImageBufferTools.cpp')
-rw-r--r--WebCore/rendering/SVGImageBufferTools.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/WebCore/rendering/SVGImageBufferTools.cpp b/WebCore/rendering/SVGImageBufferTools.cpp
index 903aa21..20f45b1 100644
--- a/WebCore/rendering/SVGImageBufferTools.cpp
+++ b/WebCore/rendering/SVGImageBufferTools.cpp
@@ -81,10 +81,8 @@ void SVGImageBufferTools::renderSubtreeToImageBuffer(ImageBuffer* image, RenderO
PaintInfo info(image->context(), PaintInfo::infiniteRect(), PaintPhaseForeground, 0, 0, 0);
- // FIXME: isSVGContainer returns true for RenderSVGViewportContainer, so if this is ever
- // called with one of those, we will read from the wrong offset in an object due to a bad cast.
RenderSVGContainer* svgContainer = 0;
- if (item && item->isSVGContainer())
+ if (item && item->isSVGContainer() && !item->isSVGViewportContainer())
svgContainer = toRenderSVGContainer(item);
bool drawsContents = svgContainer ? svgContainer->drawsContents() : false;