Index: Source/platform/graphics/ImageSource.cpp |
diff --git a/Source/platform/graphics/ImageSource.cpp b/Source/platform/graphics/ImageSource.cpp |
index 8275665d61324b5dd139fc24d9a4c456ad2809d9..c441f8acefc2645a54abb061221822337469846e 100644 |
--- a/Source/platform/graphics/ImageSource.cpp |
+++ b/Source/platform/graphics/ImageSource.cpp |
@@ -85,7 +85,7 @@ IntSize ImageSource::frameSizeAtIndex(size_t index, RespectImageOrientationEnum |
IntSize size = m_decoder->frameSizeAtIndex(index); |
if ((shouldRespectOrientation == RespectImageOrientation) && m_decoder->orientationAtIndex(index).usesWidthAsHeight()) |
- return IntSize(size.height(), size.width()); |
+ return size.transposedSize(); |
return size; |
} |