Bug 1883166 - Support SVG images without intrinsic size (just ratio) on macOS menus...
commitaa43b81cc581faa8f6221f8d60a78e7da92b62a6
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 2 Mar 2024 08:50:43 +0000 (2 08:50 +0000)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 2 Mar 2024 08:50:43 +0000 (2 08:50 +0000)
treec0cb1ee17ba367da0b68aa8cce6a6f2046ad2356
parent85abd334def75efa4b7065a84a722ddfa7de36db
Bug 1883166 - Support SVG images without intrinsic size (just ratio) on macOS menus. r=mac-reviewers,tnikkel

Images like the one in comment 1 would end with a zero size otherwise
and fail to render. The caller usually knows the size it wants to render
into, so use that.

For now for the purposes of the containers extension I can work around
it by specifying a width/height, but it seems worth fixing regardless.

Differential Revision: https://phabricator.services.mozilla.com/D203340
widget/cocoa/MOZIconHelper.mm
widget/cocoa/OSXNotificationCenter.mm
widget/cocoa/nsCocoaUtils.h
widget/cocoa/nsCocoaUtils.mm
widget/cocoa/nsCursorManager.mm