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

Unified Diff: Source/core/style/StyleFetchedImageSet.cpp

Issue 1314793010: Support fragment URLs for all kinds of SVG images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update DEPS to match Created 5 years, 3 months 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: Source/core/style/StyleFetchedImageSet.cpp
diff --git a/Source/core/style/StyleFetchedImageSet.cpp b/Source/core/style/StyleFetchedImageSet.cpp
index b5732d8fda2289ea1e6afcfeb79089396fd710c4..d3ac8058d9c321b880d4c06801d67cd9294e140f 100644
--- a/Source/core/style/StyleFetchedImageSet.cpp
+++ b/Source/core/style/StyleFetchedImageSet.cpp
@@ -32,10 +32,11 @@
namespace blink {
-StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value)
+StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value, const KURL& urlWithFragment)
: m_bestFitImage(image)
, m_imageScaleFactor(imageScaleFactor)
, m_imageSetValue(value)
+ , m_urlWithFragment(urlWithFragment)
{
m_isImageResourceSet = true;
m_bestFitImage->addClient(this);
@@ -96,7 +97,7 @@ bool StyleFetchedImageSet::usesImageContainerSize() const
void StyleFetchedImageSet::setContainerSizeForLayoutObject(const LayoutObject* layoutObject, const IntSize& imageContainerSize, float imageContainerZoomFactor)
{
- m_bestFitImage->setContainerSizeForLayoutObject(layoutObject, imageContainerSize, imageContainerZoomFactor);
+ m_bestFitImage->setContainerParametersForLayoutObject(layoutObject, imageContainerSize, imageContainerZoomFactor, m_urlWithFragment);
}
void StyleFetchedImageSet::addClient(LayoutObject* layoutObject)

Powered by Google App Engine
This is Rietveld 408576698