| 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 db9341b98a306454de1b26e8921429328e766959..3fc6a084c8a0371497992325b61303c4f65c8e38 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGImageElement.h
|
| +++ b/third_party/WebKit/Source/core/svg/SVGImageElement.h
|
| @@ -23,6 +23,7 @@
|
|
|
| #include "core/SVGNames.h"
|
| #include "core/html/canvas/CanvasImageElementSource.h"
|
| +#include "core/imagebitmap/ImageBitmapSource.h"
|
| #include "core/svg/SVGAnimatedLength.h"
|
| #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
|
| #include "core/svg/SVGGraphicsElement.h"
|
| @@ -33,6 +34,7 @@
|
| namespace blink {
|
|
|
| class CORE_EXPORT SVGImageElement final : public SVGGraphicsElement,
|
| + public ImageBitmapSource,
|
| public CanvasImageElementSource,
|
| public SVGURIReference {
|
| DEFINE_WRAPPERTYPEINFO();
|
| @@ -55,6 +57,14 @@ class CORE_EXPORT SVGImageElement final : public SVGGraphicsElement,
|
| // Exposed for testing.
|
| ImageResourceContent* cachedImage() const { return imageLoader().image(); }
|
|
|
| + // ImageBitmapSource implementation
|
| + IntSize bitmapSourceSize() const override;
|
| + ScriptPromise createImageBitmap(ScriptState*,
|
| + EventTarget&,
|
| + Optional<IntRect> cropRect,
|
| + const ImageBitmapOptions&,
|
| + ExceptionState&) override;
|
| +
|
| private:
|
| explicit SVGImageElement(Document&);
|
|
|
|
|