diff options
Diffstat (limited to 'image/DynamicImage.cpp')
-rw-r--r-- | image/DynamicImage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/image/DynamicImage.cpp b/image/DynamicImage.cpp index 670595aecb..aeb1fcf78e 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; } |