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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h

Issue 1732563007: [NOT FOR COMMIT] Pass defaultObjectSize to get image size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
index b1a87884e55bdec926592d7697a50991e92c60b7..4b440414572f42d465fa29c8b11d424595c6c776 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -62,8 +62,8 @@ public:
// source image is a subregion of the image returned by getSourceImageForCanvas.
virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { }
- virtual FloatSize elementSize() const = 0;
- virtual FloatSize defaultDestinationSize() const { return elementSize(); }
+ virtual FloatSize elementSize(const FloatSize&) const = 0;
+ virtual FloatSize defaultDestinationSize(const FloatSize& defaultObjectSize) const { return elementSize(defaultObjectSize); }
virtual const KURL& sourceURL() const { return blankURL(); }
virtual bool isOpaque() const { return false; }
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698