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

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

Issue 1911793003: drawImage throw when ImageBitmap is neutered (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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 7e897c43ec9b1d258d860fd6e06e7cc8613b7e5f..2c00cb1defd8e613800d59c614b8f6ed97d05165 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -57,6 +57,7 @@ public:
virtual bool isVideoElement() const { return false; }
virtual bool isCanvasElement() const { return false; }
virtual bool isSVGSource() const { return false; }
+ virtual bool isImageBitmap() const { return false; }
// Adjusts the source and destination rectangles for cases where the actual
// source image is a subregion of the image returned by getSourceImageForCanvas.

Powered by Google App Engine
This is Rietveld 408576698