| 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..29c3e8268860282b9abe5db8b569689b1ab46818 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/CanvasImageSource.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 CanvasImageSource,
|
| + public SVGURIReference {
|
| DEFINE_WRAPPERTYPEINFO();
|
| USING_GARBAGE_COLLECTED_MIXIN(SVGImageElement);
|
|
|
| @@ -53,6 +55,17 @@ class SVGImageElement final : public SVGGraphicsElement,
|
| // Exposed for testing.
|
| ImageResourceContent* cachedImage() const { return imageLoader().image(); }
|
|
|
| + PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*,
|
| + AccelerationHint,
|
| + SnapshotReason,
|
| + const FloatSize&) const override;
|
| +
|
| + bool wouldTaintOrigin(SecurityOrigin*) const override;
|
| + FloatSize elementSize(const FloatSize& defaultObjectSize) const override;
|
| + bool isAccelerated() const override;
|
| + int sourceWidth() override;
|
| + int sourceHeight() override;
|
| +
|
| private:
|
| explicit SVGImageElement(Document&);
|
|
|
|
|