Index: Source/core/imagebitmap/ImageBitmapFactories.cpp |
diff --git a/Source/core/imagebitmap/ImageBitmapFactories.cpp b/Source/core/imagebitmap/ImageBitmapFactories.cpp |
index 80e576fbce14bc92b387d9ca0f4b58de2e7f73b5..059ceba0c942989cd4793c51d98bd58fd0e43863 100644 |
--- a/Source/core/imagebitmap/ImageBitmapFactories.cpp |
+++ b/Source/core/imagebitmap/ImageBitmapFactories.cpp |
@@ -54,7 +54,7 @@ namespace blink { |
static LayoutSize sizeFor(HTMLImageElement* image) |
{ |
if (ImageResource* cachedImage = image->cachedImage()) |
- return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FIXME: Not sure about this. |
+ return cachedImage->imageSizeForRenderer(image->layoutObject(), 1.0f); // FIXME: Not sure about this. |
return LayoutSize(); |
} |