summaryrefslogtreecommitdiffstats
path: root/widget/cocoa/MOZIconHelper.mm
diff options
context:
space:
mode:
Diffstat (limited to 'widget/cocoa/MOZIconHelper.mm')
-rw-r--r--widget/cocoa/MOZIconHelper.mm8
1 files changed, 2 insertions, 6 deletions
diff --git a/widget/cocoa/MOZIconHelper.mm b/widget/cocoa/MOZIconHelper.mm
index e15407b797..f9c8f02406 100644
--- a/widget/cocoa/MOZIconHelper.mm
+++ b/widget/cocoa/MOZIconHelper.mm
@@ -32,11 +32,11 @@
if (aScaleFactor != 0.0f) {
rv = nsCocoaUtils::CreateNSImageFromImageContainer(
aImage, imgIContainer::FRAME_CURRENT, aPresContext, aComputedStyle,
- &retainedImage, aScaleFactor, &isEntirelyBlack);
+ aSize, &retainedImage, aScaleFactor, &isEntirelyBlack);
} else {
rv = nsCocoaUtils::CreateDualRepresentationNSImageFromImageContainer(
aImage, imgIContainer::FRAME_CURRENT, aPresContext, aComputedStyle,
- &retainedImage, &isEntirelyBlack);
+ aSize, &retainedImage, &isEntirelyBlack);
}
NSImage* image = [retainedImage autorelease];
@@ -45,10 +45,6 @@
return nil;
}
- int32_t origWidth = 0, origHeight = 0;
- aImage->GetWidth(&origWidth);
- aImage->GetHeight(&origHeight);
-
// If all the color channels in the image are black, treat the image as a
// template. This will cause macOS to use the image's alpha channel as a mask
// and it will fill it with a color that looks good in the context that it's