Index: Source/core/style/StyleFetchedImageSet.h |
diff --git a/Source/core/style/StyleFetchedImageSet.h b/Source/core/style/StyleFetchedImageSet.h |
index 2ad89c3fefb7eccd410a0870c642e609f3e5ae46..c0069fd3881955865517803470a2789a0d62a10e 100644 |
--- a/Source/core/style/StyleFetchedImageSet.h |
+++ b/Source/core/style/StyleFetchedImageSet.h |
@@ -41,9 +41,9 @@ class CSSImageSetValue; |
class StyleFetchedImageSet final : public StyleImage, private ImageResourceClient { |
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleFetchedImageSet); |
public: |
- static PassRefPtrWillBeRawPtr<StyleFetchedImageSet> create(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value) |
+ static PassRefPtrWillBeRawPtr<StyleFetchedImageSet> create(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value, const KURL& url) |
{ |
- return adoptRefWillBeNoop(new StyleFetchedImageSet(image, imageScaleFactor, value)); |
+ return adoptRefWillBeNoop(new StyleFetchedImageSet(image, imageScaleFactor, value, url)); |
} |
~StyleFetchedImageSet() override; |
@@ -73,16 +73,18 @@ public: |
float imageScaleFactor() const override { return m_imageScaleFactor; } |
bool knownToBeOpaque(const LayoutObject*) const override; |
ImageResource* cachedImage() const override { return m_bestFitImage.get(); } |
+ KURL url() const override { return m_url; } |
DECLARE_VIRTUAL_TRACE(); |
private: |
- StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValue*); |
+ StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValue*, const KURL&); |
ResourcePtr<ImageResource> m_bestFitImage; |
float m_imageScaleFactor; |
RawPtrWillBeMember<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us. |
+ KURL m_url; |
}; |
DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet()); |