Index: Source/platform/graphics/BitmapImage.cpp |
diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp |
index f49218a73039395d4a07b235440cd70a30863cf2..eec27f48d948cde0ca50efbcc2d49da620037bd1 100644 |
--- a/Source/platform/graphics/BitmapImage.cpp |
+++ b/Source/platform/graphics/BitmapImage.cpp |
@@ -50,7 +50,7 @@ PassRefPtr<BitmapImage> BitmapImage::createWithOrientationForTesting(const SkBit |
RefPtr<BitmapImage> result = adoptRef(new BitmapImage(bitmap)); |
result->m_frames[0].m_orientation = orientation; |
if (orientation.usesWidthAsHeight()) |
- result->m_sizeRespectingOrientation = IntSize(result->m_size.height(), result->m_size.width()); |
+ result->m_sizeRespectingOrientation = result->m_size.transposedSize(); |
return result.release(); |
} |