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 bc5612619ee910980c9c740422295a099f78f112..1146245bc216032fc1f9ce1af470283421af1031 100644 |
--- a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
+++ b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp |
@@ -37,7 +37,7 @@ void ImageBitmapRenderingContext::transferImageBitmap(ImageBitmap* imageBitmap) |
surface->getCanvas()->drawImage(skImage.get(), 0, 0); |
m_image = StaticBitmapImage::create(adoptRef(surface->newImageSnapshot())); |
} |
- canvas()->didDraw(FloatRect(FloatPoint(), FloatSize(m_image->width(), m_image->height()))); |
+ canvas()->didDraw(FloatRect(FloatPoint(), FloatSize(m_image->defaultConcreteObjectSizeWidth(), m_image->defaultConcreteObjectSizeHeight()))); |
} |
bool ImageBitmapRenderingContext::paint(GraphicsContext& gc, const IntRect& r) |