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; |