Index: third_party/WebKit/Source/core/style/StyleFetchedImage.h |
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h |
index 1d8b35744aff43d134b04890ddadf087a6e75a56..7414227343aef2bf9bbe40653d5cd7b6180f97d6 100644 |
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h |
+++ b/third_party/WebKit/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& urlWithFragment) |
{ |
- return adoptRefWillBeNoop(new StyleFetchedImage(image, document)); |
+ return adoptRefWillBeNoop(new StyleFetchedImage(image, document, urlWithFragment)); |
} |
~StyleFetchedImage() override; |
@@ -55,21 +55,22 @@ public: |
bool imageHasRelativeHeight() const override; |
void computeIntrinsicDimensions(const LayoutObject*, Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override; |
bool usesImageContainerSize() const override; |
- void setContainerSizeForLayoutObject(const LayoutObject*, const IntSize&, float) override; |
void addClient(LayoutObject*) override; |
void removeClient(LayoutObject*) override; |
void notifyFinished(Resource*) override; |
- PassRefPtr<Image> image(const LayoutObject*, const IntSize&) const override; |
+ PassRefPtr<Image> image(const LayoutObject*, const IntSize&, float zoom, const KURL&) const override; |
bool knownToBeOpaque(const LayoutObject*) const override; |
ImageResource* cachedImage() const override; |
+ KURL url() const override { return m_urlWithFragment; } |
DECLARE_VIRTUAL_TRACE(); |
private: |
- StyleFetchedImage(ImageResource*, Document*); |
+ StyleFetchedImage(ImageResource*, Document*, const KURL&); |
ResourcePtr<ImageResource> m_image; |
RawPtrWillBeMember<Document> m_document; |
+ KURL m_urlWithFragment; |
}; |
DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, isImageResource()); |