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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 20ec7f30991e0658f2b9619285a2814c70b77ebc..f44fff55bfc2b2da01624f0f5921aa17ee76aaf4 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -554,7 +554,7 @@ static PassRefPtr<StaticBitmapImage> CropImageAndApplyColorSpaceConversion(
return StaticBitmapImage::Create(PremulSkImageToUnPremul(skia_image.get()));
}
-ImageBitmap::ImageBitmap(HTMLImageElement* image,
+ImageBitmap::ImageBitmap(HTMLAndSVGImageElementSource* image,
Optional<IntRect> crop_rect,
Document* document,
const ImageBitmapOptions& options) {
@@ -997,7 +997,7 @@ PassRefPtr<StaticBitmapImage> ImageBitmap::Transfer() {
ImageBitmap::~ImageBitmap() {}
-ImageBitmap* ImageBitmap::Create(HTMLImageElement* image,
+ImageBitmap* ImageBitmap::Create(HTMLAndSVGImageElementSource* image,
Optional<IntRect> crop_rect,
Document* document,
const ImageBitmapOptions& options) {

Powered by Google App Engine
This is Rietveld 408576698