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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index c3cd961a5b12b29186bb1a6b3c37db276e19f1b6..a0d73073519ff5dc347be733d6cfbfe8f371160d 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -551,7 +551,7 @@ static PassRefPtr<StaticBitmapImage> cropImageAndApplyColorSpaceConversion(
return StaticBitmapImage::create(premulSkImageToUnPremul(skiaImage.get()));
}
-ImageBitmap::ImageBitmap(HTMLImageElement* image,
+ImageBitmap::ImageBitmap(HTMLAndSVGImageElementSource* image,
Optional<IntRect> cropRect,
Document* document,
const ImageBitmapOptions& options) {
@@ -983,7 +983,7 @@ PassRefPtr<StaticBitmapImage> ImageBitmap::transfer() {
ImageBitmap::~ImageBitmap() {}
-ImageBitmap* ImageBitmap::create(HTMLImageElement* image,
+ImageBitmap* ImageBitmap::create(HTMLAndSVGImageElementSource* image,
Optional<IntRect> cropRect,
Document* document,
const ImageBitmapOptions& options) {

Powered by Google App Engine
This is Rietveld 408576698