| 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 2ea5975d87c8e1b3a154d3aef34f6d92e2889951..69039e561354a742d28c16d9c1f9ed96e80ce4d1 100644
|
| --- a/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| +++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
|
| @@ -37,11 +37,11 @@ namespace blink {
|
| class SVGImageForContainer final : public Image {
|
| USING_FAST_MALLOC(SVGImageForContainer);
|
| public:
|
| - static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const IntSize& containerSize, float zoom)
|
| + static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const IntSize& containerSize, float zoom, const KURL& url)
|
| {
|
| FloatSize containerSizeWithoutZoom(containerSize);
|
| containerSizeWithoutZoom.scale(1 / zoom);
|
| - return adoptRef(new SVGImageForContainer(image, containerSizeWithoutZoom, zoom));
|
| + return adoptRef(new SVGImageForContainer(image, containerSizeWithoutZoom, zoom, url));
|
| }
|
|
|
| IntSize size() const override;
|
| @@ -64,10 +64,11 @@ public:
|
| PassRefPtr<SkImage> imageForCurrentFrame() override;
|
|
|
| private:
|
| - SVGImageForContainer(SVGImage* image, const FloatSize& containerSize, float zoom)
|
| + SVGImageForContainer(SVGImage* image, const FloatSize& containerSize, float zoom, const KURL& url)
|
| : m_image(image)
|
| , m_containerSize(containerSize)
|
| , m_zoom(zoom)
|
| + , m_url(url)
|
| {
|
| }
|
|
|
| @@ -76,6 +77,7 @@ private:
|
| SVGImage* m_image;
|
| const FloatSize m_containerSize;
|
| const float m_zoom;
|
| + const KURL m_url;
|
| };
|
| }
|
|
|
|
|