Index: third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
diff --git a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
index e3a7c54952c2a22402efe539f4cd336283503f87..e2f77da4c0f4f2d3b661fa7797adac7d44304b1d 100644 |
--- a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
+++ b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
@@ -62,8 +62,7 @@ void ImageBitmapRenderingContext::transferFromImageBitmap( |
surface->getCanvas()->drawImage(skImage, 0, 0); |
m_image = StaticBitmapImage::create(surface->makeImageSnapshot()); |
} |
- canvas()->didDraw( |
- FloatRect(FloatPoint(), FloatSize(m_image->width(), m_image->height()))); |
+ didDraw(skImage->bounds()); |
imageBitmap->close(); |
} |