summaryrefslogtreecommitdiffstats
path: root/image/DynamicImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/DynamicImage.cpp')
-rw-r--r--image/DynamicImage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/image/DynamicImage.cpp b/image/DynamicImage.cpp
index 670595aec..aeb1fcf78 100644
--- a/image/DynamicImage.cpp
+++ b/image/DynamicImage.cpp
@@ -136,10 +136,10 @@ DynamicImage::GetIntrinsicSize(nsSize* aSize)
}
NS_IMETHODIMP
-DynamicImage::GetIntrinsicRatio(nsSize* aSize)
+DynamicImage::GetIntrinsicRatio(AspectRatio* aRatio)
{
- IntSize intSize(mDrawable->Size());
- *aSize = nsSize(intSize.width, intSize.height);
+ auto size = mDrawable->Size();
+ *aRatio = AspectRatio::FromSize(size);
return NS_OK;
}