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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.h

Issue 2802813002: Adds SVGImageElement as a ImageBitmapSource (Closed)
Patch Set: merge Created 3 years, 8 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/HTMLImageElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index 1ad853c6bc378166b5465498594250cae709b7aa..6dfa7ca43915808ddfa2d44ca3691eb99ad29dd9 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -29,8 +29,7 @@
#include "core/html/FormAssociated.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLImageLoader.h"
-#include "core/html/canvas/CanvasImageElementSource.h"
-#include "core/imagebitmap/ImageBitmapSource.h"
+#include "core/html/canvas/HTMLAndSVGImageElementSource.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/loader/fetch/FetchRequest.h"
#include "platform/loader/fetch/ResourceResponse.h"
@@ -40,12 +39,10 @@ namespace blink {
class HTMLFormElement;
class ImageCandidate;
class ShadowRoot;
-class ImageBitmapOptions;
class CORE_EXPORT HTMLImageElement final
: public HTMLElement,
- public CanvasImageElementSource,
- public ImageBitmapSource,
+ public HTMLAndSVGImageElementSource,
public ActiveScriptWrappable<HTMLImageElement>,
public FormAssociated {
DEFINE_WRAPPERTYPEINFO();
@@ -133,14 +130,6 @@ class CORE_EXPORT HTMLImageElement final
void ForceReload() const;
- // ImageBitmapSource implementation
- IntSize BitmapSourceSize() const override;
- ScriptPromise CreateImageBitmap(ScriptState*,
- EventTarget&,
- Optional<IntRect> crop_rect,
- const ImageBitmapOptions&,
- ExceptionState&) override;
-
FormAssociated* ToFormAssociatedOrNull() override { return this; };
void AssociateWith(HTMLFormElement*) override;

Powered by Google App Engine
This is Rietveld 408576698