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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.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/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 54ea1b1511d923fe21ac59b587162bbf15019b9c..b8519acaa2f45ee94709400fa08aac56dd991ad7 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -5,10 +5,11 @@
#ifndef ImageBitmap_h
#define ImageBitmap_h
+#include <memory>
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
-#include "core/html/HTMLImageElement.h"
#include "core/html/canvas/CanvasImageSource.h"
+#include "core/html/canvas/HTMLAndSVGImageElementSource.h"
#include "core/imagebitmap/ImageBitmapOptions.h"
#include "core/imagebitmap/ImageBitmapSource.h"
#include "platform/geometry/IntRect.h"
@@ -18,9 +19,9 @@
#include "platform/heap/Handle.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/PassRefPtr.h"
-#include <memory>
namespace blink {
+class Document;
class HTMLCanvasElement;
class HTMLVideoElement;
class ImageData;
@@ -48,7 +49,7 @@ class CORE_EXPORT ImageBitmap final
DEFINE_WRAPPERTYPEINFO();
public:
- static ImageBitmap* Create(HTMLImageElement*,
+ static ImageBitmap* Create(HTMLAndSVGImageElementSource*,
Optional<IntRect>,
Document*,
const ImageBitmapOptions& = ImageBitmapOptions());
@@ -138,7 +139,7 @@ class CORE_EXPORT ImageBitmap final
DECLARE_VIRTUAL_TRACE();
private:
- ImageBitmap(HTMLImageElement*,
+ ImageBitmap(HTMLAndSVGImageElementSource*,
Optional<IntRect>,
Document*,
const ImageBitmapOptions&);

Powered by Google App Engine
This is Rietveld 408576698