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

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

Issue 2723093004: Adds SVGImageElement as a CanvasImageSource (Closed)
Patch Set: Moved from circle to rect, to avoid aliasing 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.h
diff --git a/third_party/WebKit/Source/core/svg/SVGImageElement.h b/third_party/WebKit/Source/core/svg/SVGImageElement.h
index 54db5f4ac6e6f4851779ea2746ece002b1085227..db9341b98a306454de1b26e8921429328e766959 100644
--- a/third_party/WebKit/Source/core/svg/SVGImageElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGImageElement.h
@@ -22,6 +22,7 @@
#define SVGImageElement_h
#include "core/SVGNames.h"
+#include "core/html/canvas/CanvasImageElementSource.h"
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGAnimatedPreserveAspectRatio.h"
#include "core/svg/SVGGraphicsElement.h"
@@ -31,8 +32,9 @@
namespace blink {
-class SVGImageElement final : public SVGGraphicsElement,
- public SVGURIReference {
+class CORE_EXPORT SVGImageElement final : public SVGGraphicsElement,
+ public CanvasImageElementSource,
+ public SVGURIReference {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(SVGImageElement);
@@ -77,7 +79,8 @@ class SVGImageElement final : public SVGGraphicsElement,
bool selfHasRelativeLengths() const override;
void didMoveToNewDocument(Document& oldDocument) override;
- SVGImageLoader& imageLoader() const { return *m_imageLoader; }
+ SVGImageLoader& imageLoader() const override { return *m_imageLoader; }
+ FloatSize sourceDefaultObjectSize() override;
Member<SVGAnimatedLength> m_x;
Member<SVGAnimatedLength> m_y;
« no previous file with comments | « third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h ('k') | third_party/WebKit/Source/core/svg/SVGImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698