Index: Source/core/svg/graphics/SVGImage.cpp |
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp |
index 1a96062555c07d557ab36d7f79a74587379b0aa7..b248d0b787b4b37c1f827eda493e373dc30b27f9 100644 |
--- a/Source/core/svg/graphics/SVGImage.cpp |
+++ b/Source/core/svg/graphics/SVGImage.cpp |
@@ -217,7 +217,7 @@ void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const Fl |
if (view->needsLayout()) |
view->layout(); |
- view->paint(context, IntRect(0, 0, view->width(), view->height())); |
+ view->paint(context, enclosingIntRect(srcRect)); |
if (compositeOp != CompositeSourceOver) |
context->endTransparencyLayer(); |