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

Unified Diff: Source/core/svg/graphics/SVGImageForContainer.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/svg/graphics/SVGImageForContainer.cpp
diff --git a/Source/core/svg/graphics/SVGImageForContainer.cpp b/Source/core/svg/graphics/SVGImageForContainer.cpp
index e893036a6d8bfccc5bbf3bb33ab9fd18edae3535..2ed851a8930303d4133d8d6fa860b03e2fb75012 100644
--- a/Source/core/svg/graphics/SVGImageForContainer.cpp
+++ b/Source/core/svg/graphics/SVGImageForContainer.cpp
@@ -38,13 +38,13 @@ IntSize SVGImageForContainer::size() const
void SVGImageForContainer::draw(SkCanvas* canvas, const SkPaint& paint, const FloatRect& dstRect,
const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode)
{
- m_image->drawForContainer(canvas, paint, m_containerSize, m_zoom, dstRect, srcRect);
+ m_image->drawForContainer(canvas, paint, m_containerSize, m_zoom, dstRect, srcRect, m_urlWithFragment);
}
void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale,
const FloatPoint& phase, SkXfermode::Mode op, const FloatRect& dstRect, const IntSize& repeatSpacing)
{
- m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, op, dstRect, repeatSpacing);
+ m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, op, dstRect, repeatSpacing, m_urlWithFragment);
}
PassRefPtr<SkImage> SVGImageForContainer::imageForCurrentFrame()

Powered by Google App Engine
This is Rietveld 408576698