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

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

Issue 2802813002: Adds SVGImageElement as a ImageBitmapSource (Closed)
Patch Set: tests 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..63a103c81107c3ea7901212d5a89c80d5e757652 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"
fs 2017/04/06 20:27:54 Not needed now?
fserb 2017/04/06 21:03:49 done. Also removed HTMLImageElement.
#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;
@@ -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());
@@ -139,7 +140,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