| Index: third_party/WebKit/Source/core/paint/SVGImagePainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp b/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp
|
| index e118d126d9a5c90a8f76791d3b56e613b3648bfb..b034cfce0f2e19a9848b7e80ae9f1ae121e26724 100644
|
| --- a/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp
|
| @@ -57,7 +57,7 @@ void SVGImagePainter::paintForeground(const PaintInfo& paintInfo)
|
|
|
| RefPtr<Image> image = imageResource->image(imageViewportSize, m_layoutSVGImage.style()->effectiveZoom());
|
| FloatRect destRect = m_layoutSVGImage.objectBoundingBox();
|
| - FloatRect srcRect(0, 0, image->width(), image->height());
|
| + FloatRect srcRect(0, 0, image->defaultConcreteObjectSizeWidth(), image->defaultConcreteObjectSizeHeight());
|
|
|
| SVGImageElement* imageElement = toSVGImageElement(m_layoutSVGImage.element());
|
| imageElement->preserveAspectRatio()->currentValue()->transformRect(destRect, srcRect);
|
|
|