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

Unified Diff: third_party/WebKit/Source/core/svg/SVGImageElement.cpp

Issue 2723093004: Adds SVGImageElement as a CanvasImageSource (Closed)
Patch Set: Refactored, added tests Created 3 years, 9 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/svg/SVGImageElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
index 99f083eae214dccc6296751d4afa06fb065655c7..d224e051dc6a346534c75b456fd0c91d7a0e0645 100644
--- a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
@@ -195,6 +195,10 @@ Node::InsertionNotificationRequest SVGImageElement::insertedInto(
return InsertionDone;
}
+FloatSize SVGImageElement::sourceDefaultSize() {
+ return FloatSize(0, 0);
fs 2017/03/07 22:01:25 To be somewhat equivalent with the HTMLImageElemen
fserb 2017/03/08 18:31:59 Thanks for the code snippet, I'll implement it lik
fs 2017/03/08 18:57:16 Ok (ImageBitmapSource though, right?). Codesearch
fserb 2017/03/21 19:15:22 yep. Only for shapedetection, (which I assumed is
fs 2017/03/21 21:05:41 Acknowledged.
+}
+
const AtomicString SVGImageElement::imageSourceURL() const {
return AtomicString(hrefString());
}

Powered by Google App Engine
This is Rietveld 408576698