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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/StyleFetchedImageSet.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
index 8625c40ae163436516e54bb739e49328c637cb51..6b5b1419009be02ae4c5422f603dc563badd72a7 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
@@ -41,9 +41,9 @@ class CSSImageSetValue;
class StyleFetchedImageSet final : public StyleImage, private ImageResourceClient {
USING_FAST_MALLOC_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;
@@ -77,7 +77,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValue*);
+ StyleFetchedImageSet(ImageResource*, float imageScaleFactor, CSSImageSetValue*, const KURL&);
String debugName() const override { return "StyleFetchedImageSet"; }
@@ -85,6 +85,7 @@ private:
float m_imageScaleFactor;
RawPtrWillBeMember<CSSImageSetValue> m_imageSetValue; // Not retained; it owns us.
+ const KURL m_url;
};
DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImageSet, isImageResourceSet());

Powered by Google App Engine
This is Rietveld 408576698