Chromium Code Reviews

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

Issue 1694263003: Add Image::updateConcreteSize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-size-calculation-in
Patch Set: Pull test for now, needs changes in upcoming CL to pass. Address nits. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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..07d4195ac9a5e078fe521182df280a6bc012177e 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -62,6 +62,7 @@ public:
// source image is a subregion of the image returned by getSourceImageForCanvas.
virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { }
+ virtual void updateConcreteObjectSize(const FloatSize&) { }
virtual FloatSize elementSize() const = 0;
virtual FloatSize defaultDestinationSize() const { return elementSize(); }
virtual const KURL& sourceURL() const { return blankURL(); }

Powered by Google App Engine