Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.h

Issue 1458083002: Support fragment URLs for more kinds of SVG images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplification wasn't simple enough Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 2ee7d3e9fafd947c1a897f74b49c141621d922e5..9b5c9ab3f9ed38a7690e98aacdd48b6bcec002f7 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 {
USING_FAST_MALLOC_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;
@@ -66,10 +66,11 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- StyleFetchedImage(ImageResource*, Document*);
+ StyleFetchedImage(ImageResource*, Document*, const KURL&);
ResourcePtr<ImageResource> m_image;
RawPtrWillBeMember<Document> m_document;
+ const KURL m_url;
};
DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, isImageResource());

Powered by Google App Engine
This is Rietveld 408576698