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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 2802813002: Adds SVGImageElement as a ImageBitmapSource (Closed)
Patch Set: test 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 99fd4d56562ff925fa6ae68234bab2d1d45a154e..bfdbf1ffcc56f02d3b25cea2ef30000e4f965f1f 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -5,12 +5,14 @@
#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/imagebitmap/ImageBitmapOptions.h"
#include "core/imagebitmap/ImageBitmapSource.h"
+#include "core/svg/SVGImageElement.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/Image.h"
#include "platform/graphics/ImageBuffer.h"
@@ -18,7 +20,6 @@
#include "platform/heap/Handle.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/PassRefPtr.h"
-#include <memory>
namespace blink {
class HTMLCanvasElement;
@@ -52,6 +53,10 @@ class CORE_EXPORT ImageBitmap final
Optional<IntRect>,
Document*,
const ImageBitmapOptions& = ImageBitmapOptions());
+ static ImageBitmap* create(SVGImageElement*,
+ Optional<IntRect>,
+ Document*,
+ const ImageBitmapOptions& = ImageBitmapOptions());
static ImageBitmap* create(HTMLVideoElement*,
Optional<IntRect>,
Document*,
@@ -143,6 +148,10 @@ class CORE_EXPORT ImageBitmap final
Optional<IntRect>,
Document*,
const ImageBitmapOptions&);
+ ImageBitmap(SVGImageElement*,
+ Optional<IntRect>,
+ Document*,
+ const ImageBitmapOptions&);
ImageBitmap(HTMLVideoElement*,
Optional<IntRect>,
Document*,

Powered by Google App Engine
This is Rietveld 408576698