summaryrefslogtreecommitdiffstats
path: root/image/OrientedImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/OrientedImage.cpp')
-rw-r--r--image/OrientedImage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/OrientedImage.cpp b/image/OrientedImage.cpp
index 9489ceafd..0b6560df1 100644
--- a/image/OrientedImage.cpp
+++ b/image/OrientedImage.cpp
@@ -59,12 +59,12 @@ OrientedImage::GetIntrinsicSize(nsSize* aSize)
}
NS_IMETHODIMP
-OrientedImage::GetIntrinsicRatio(nsSize* aRatio)
+OrientedImage::GetIntrinsicRatio(AspectRatio* aRatio)
{
nsresult rv = InnerImage()->GetIntrinsicRatio(aRatio);
if (mOrientation.SwapsWidthAndHeight()) {
- swap(aRatio->width, aRatio->height);
+ *aRatio = aRatio->Inverted();
}
return rv;