Index: Source/WebCore/svg/graphics/SVGImage.cpp |
=================================================================== |
--- Source/WebCore/svg/graphics/SVGImage.cpp (revision 134256) |
+++ Source/WebCore/svg/graphics/SVGImage.cpp (working copy) |
@@ -180,7 +180,11 @@ |
if (zoom != 1) |
frame->setPageZoomFactor(1); |
- renderer->setContainerSize(IntSize()); |
+ // Renderer may have been recreated by frame->setPageZoomFactor(zoom). So fetch it again. |
+ renderer = toRenderSVGRoot(rootElement->renderer()); |
+ if (renderer) |
+ renderer->setContainerSize(IntSize()); |
+ |
frame->view()->resize(this->size()); |
if (frame->view()->needsLayout()) |
frame->view()->layout(); |