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

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

Issue 2351363002: Make CSSStyleImageValue a member of CanvasImageSource. (Closed)
Patch Set: added additional nullptr checks to getSourceImageForCanvas, changed toImageSourceInternal to includ… Created 4 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: 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 f38c8e22c88062cad45ce419336adf2364cbff3b..d0ed03ed89da923f9d3150a612107aa6a19973b0 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -54,6 +54,7 @@ public:
// another canvas, which may not be already tainted.
virtual bool wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigin) const = 0;
+ virtual bool isCSSImageValue() const { return false; }
virtual bool isVideoElement() const { return false; }
virtual bool isCanvasElement() const { return false; }
virtual bool isSVGSource() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698