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

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

Issue 2496013002: Make a bitmaprenderer canvas an ImageSource (Closed)
Patch Set: remove the expected.txt because the test is passing Created 4 years, 1 month 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 ea65053dcc9cc3ede316e1038d221664f00deac9..7234c0a3462edfba44495ff6eeea14ddd15b0241 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -471,7 +471,7 @@ ImageBitmap::ImageBitmap(HTMLCanvasElement* canvas,
ASSERT(canvas->isPaintable());
RefPtr<Image> input = canvas->copiedImage(BackBuffer, PreferAcceleration);
ParsedOptions parsedOptions =
- parseOptions(options, cropRect, canvas->bitmapSourceSize());
+ parseOptions(options, cropRect, IntSize(input->width(), input->height()));
if (dstBufferSizeHasOverflow(parsedOptions))
return;

Powered by Google App Engine
This is Rietveld 408576698