Index: third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp |
diff --git a/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp b/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp |
index 2d02ab5c44381840a71e2e00d80e144cb0477180..e8dd9fa057989226b29f40b988b48580fb7c67f5 100644 |
--- a/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp |
+++ b/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp |
@@ -42,6 +42,7 @@ |
#include "core/html/HTMLImageElement.h" |
#include "core/html/HTMLVideoElement.h" |
#include "core/html/ImageData.h" |
+#include "core/layout/LayoutObject.h" |
#include "core/workers/WorkerGlobalScope.h" |
#include "modules/canvas2d/CanvasRenderingContext2D.h" |
#include "platform/SharedBuffer.h" |
@@ -55,7 +56,7 @@ namespace blink { |
static LayoutSize sizeFor(HTMLImageElement* image) |
{ |
if (ImageResource* cachedImage = image->cachedImage()) |
- return cachedImage->imageSizeForLayoutObject(image->layoutObject(), 1.0f); // FIXME: Not sure about this. |
+ return cachedImage->imageSize(LayoutObject::shouldRespectImageOrientation(image->layoutObject()), 1.0f); // FIXME: Not sure about this. |
return LayoutSize(); |
} |