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

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

Issue 2351363002: Make CSSStyleImageValue a member of CanvasImageSource. (Closed)
Patch Set: 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..c80d41dfec477db140c94b3897de4e381516311b 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -34,6 +34,8 @@
namespace blink {
class Image;
+class FloatRect;
+class FloatSize;
Justin Novosad 2016/09/28 15:41:58 Why are these forward declarations needed?
Gleb Lanbin 2016/09/28 16:58:22 deleted but I think we need these declarations to
class SecurityOrigin;
enum SourceImageStatus {
@@ -54,6 +56,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