summaryrefslogtreecommitdiffstats
path: root/image/RasterImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/RasterImage.cpp')
-rw-r--r--image/RasterImage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/image/RasterImage.cpp b/image/RasterImage.cpp
index b67ec3bef..5725aee3a 100644
--- a/image/RasterImage.cpp
+++ b/image/RasterImage.cpp
@@ -240,13 +240,14 @@ RasterImage::GetIntrinsicSize(nsSize* aSize)
//******************************************************************************
NS_IMETHODIMP
-RasterImage::GetIntrinsicRatio(nsSize* aRatio)
+RasterImage::GetIntrinsicRatio(AspectRatio* aRatio)
{
if (mError) {
return NS_ERROR_FAILURE;
}
- *aRatio = nsSize(mSize.width, mSize.height);
+ *aRatio = AspectRatio::FromSize(mSize);
+
return NS_OK;
}