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

Unified Diff: Source/core/style/StyleFetchedImage.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/StyleFetchedImage.cpp
diff --git a/Source/core/style/StyleFetchedImage.cpp b/Source/core/style/StyleFetchedImage.cpp
index 5f3d9d007bae15292386c4ff5aa78bf896b5b7ec..5dfef1ef872e70394626394013d80f26b8fbbae6 100644
--- a/Source/core/style/StyleFetchedImage.cpp
+++ b/Source/core/style/StyleFetchedImage.cpp
@@ -31,9 +31,10 @@
namespace blink {
-StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document)
+StyleFetchedImage::StyleFetchedImage(ImageResource* image, Document* document, const KURL& urlWithFragment)
: m_image(image)
, m_document(document)
+ , m_urlWithFragment(urlWithFragment)
{
m_isImageResource = true;
m_image->addClient(this);
@@ -91,7 +92,7 @@ bool StyleFetchedImage::usesImageContainerSize() const
void StyleFetchedImage::setContainerSizeForLayoutObject(const LayoutObject* layoutObject, const IntSize& imageContainerSize, float imageContainerZoomFactor)
{
- m_image->setContainerSizeForLayoutObject(layoutObject, imageContainerSize, imageContainerZoomFactor);
+ m_image->setContainerParametersForLayoutObject(layoutObject, imageContainerSize, imageContainerZoomFactor, m_urlWithFragment);
}
void StyleFetchedImage::addClient(LayoutObject* layoutObject)

Powered by Google App Engine
This is Rietveld 408576698