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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.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/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 399bb97d5b6eb2be50ae3e1aeed7d1d2de24acf8..d9174eb4937509eba785e573c8f519293feb2fbc 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -61,6 +61,7 @@ public:
bool wouldTaintOrigin(SecurityOrigin*) const override { return !m_image->originClean(); }
void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const override;
FloatSize elementSize(const FloatSize&) const override;
+ bool isImageBitmap() const override { return true; }
// ImageBitmapSource implementation
IntSize bitmapSourceSize() const override { return size(); }

Powered by Google App Engine
This is Rietveld 408576698