Index: Source/core/style/StyleFetchedImage.h |
diff --git a/Source/core/style/StyleFetchedImage.h b/Source/core/style/StyleFetchedImage.h |
index 4f6ecf2c0f9646d45c6c98424f8156f112c6f5b6..4bdf43304bcc3e57fc054830df3feb072efbde37 100644 |
--- a/Source/core/style/StyleFetchedImage.h |
+++ b/Source/core/style/StyleFetchedImage.h |
@@ -36,9 +36,9 @@ class ImageResource; |
class StyleFetchedImage final : public StyleImage, private ImageResourceClient { |
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleFetchedImage); |
public: |
- static PassRefPtrWillBeRawPtr<StyleFetchedImage> create(ImageResource* image, Document* document) |
+ static PassRefPtrWillBeRawPtr<StyleFetchedImage> create(ImageResource* image, Document* document, const KURL& url) |
{ |
- return adoptRefWillBeNoop(new StyleFetchedImage(image, document)); |
+ return adoptRefWillBeNoop(new StyleFetchedImage(image, document, url)); |
} |
~StyleFetchedImage() override; |
@@ -61,14 +61,16 @@ public: |
PassRefPtr<Image> image(LayoutObject*, const IntSize&) const override; |
bool knownToBeOpaque(const LayoutObject*) const override; |
ImageResource* cachedImage() const override { return m_image.get(); } |
+ KURL url() const override { return m_url; } |
DECLARE_VIRTUAL_TRACE(); |
private: |
- StyleFetchedImage(ImageResource*, Document*); |
+ StyleFetchedImage(ImageResource*, Document*, const KURL&); |
ResourcePtr<ImageResource> m_image; |
RawPtrWillBeMember<Document> m_document; |
+ KURL m_url; |
}; |
DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, isImageResource()); |