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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
index d92ac5c8a006ee8cfd6a5a65ec41454ebaa4a616..bcc28575da3c99ab066bd16c2c188d5bd8d42ec8 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
@@ -32,9 +32,10 @@
namespace blink {
-StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document)
+StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document, const KURL& url)
: m_image(image)
, m_document(document)
+ , m_url(url)
{
m_isImageResource = true;
m_image->addClient(this);
@@ -127,7 +128,7 @@ PassRefPtr<Image> StyleFetchedImage::image(const LayoutObject*, const IntSize& c
{
RefPtr<Image> image = m_image->image();
if (image->isSVGImage())
- return SVGImageForContainer::create(toSVGImage(image.get()), containerSize, zoom);
+ return SVGImageForContainer::create(toSVGImage(image.get()), containerSize, zoom, m_url);
return image;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImage.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImageSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698