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

Unified Diff: Source/core/svg/graphics/SVGImageForContainer.cpp

Issue 1334703002: NOT FOR LANDING Pass URL to Image::draw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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..7c967f4e074a0ec4b85379930d5524ec1b214f40 100644
--- a/Source/core/svg/graphics/SVGImageForContainer.cpp
+++ b/Source/core/svg/graphics/SVGImageForContainer.cpp
@@ -36,15 +36,15 @@ IntSize SVGImageForContainer::size() const
}
void SVGImageForContainer::draw(SkCanvas* canvas, const SkPaint& paint, const FloatRect& dstRect,
- const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode)
+ const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode, const KURL& url)
{
- m_image->drawForContainer(canvas, paint, m_containerSize, m_zoom, dstRect, srcRect);
+ m_image->drawForContainer(canvas, paint, m_containerSize, m_zoom, dstRect, srcRect, url);
}
void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale,
- const FloatPoint& phase, SkXfermode::Mode op, const FloatRect& dstRect, const IntSize& repeatSpacing)
+ const FloatPoint& phase, const KURL& url, 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, url);
}
PassRefPtr<SkImage> SVGImageForContainer::imageForCurrentFrame()
« no previous file with comments | « Source/core/svg/graphics/SVGImageForContainer.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698