Index: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
index d92ac5c8a006ee8cfd6a5a65ec41454ebaa4a616..bcc28575da3c99ab066bd16c2c188d5bd8d42ec8 100644 |
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
@@ -32,9 +32,10 @@ |
namespace blink { |
-StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document) |
+StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document, const KURL& url) |
: m_image(image) |
, m_document(document) |
+ , m_url(url) |
{ |
m_isImageResource = true; |
m_image->addClient(this); |
@@ -127,7 +128,7 @@ PassRefPtr<Image> StyleFetchedImage::image(const LayoutObject*, const IntSize& c |
{ |
RefPtr<Image> image = m_image->image(); |
if (image->isSVGImage()) |
- return SVGImageForContainer::create(toSVGImage(image.get()), containerSize, zoom); |
+ return SVGImageForContainer::create(toSVGImage(image.get()), containerSize, zoom, m_url); |
return image; |
} |