| Index: third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h b/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| index 23bbf308d726ab68fe812dae57bee36b69759d85..2a9a4150f333bb1854712e8eecb954afcad63e08 100644
|
| --- a/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| +++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| @@ -35,16 +35,16 @@
|
| namespace blink {
|
|
|
| class SVGImageForContainer final : public Image {
|
| + USING_FAST_MALLOC(SVGImageForContainer);
|
| public:
|
| static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const FloatSize& containerSize, float zoom)
|
| {
|
| - return adoptRef(new SVGImageForContainer(image, containerSize, zoom));
|
| + FloatSize containerSizeWithoutZoom(containerSize);
|
| + containerSizeWithoutZoom.scale(1 / zoom);
|
| + return adoptRef(new SVGImageForContainer(image, containerSizeWithoutZoom, zoom));
|
| }
|
|
|
| - bool isSVGImage() const override { return true; }
|
| -
|
| IntSize size() const override;
|
| - void setURL(const KURL& url) { m_image->setURL(url); }
|
|
|
| bool usesContainerSize() const override { return m_image->usesContainerSize(); }
|
| bool hasRelativeWidth() const override { return m_image->hasRelativeWidth(); }
|
|
|