RESOLVED FIXED293240
Remove all calls to deprecated NSImage setScalesWhenResized
https://bugs.webkit.org/show_bug.cgi?id=293240
Summary Remove all calls to deprecated NSImage setScalesWhenResized
Brent Fulgham
Reported 2025-05-19 11:27:03 PDT
I removed on use of the deprecated `setScalesWhenResized:` call in Bug 293071. I failed to search the codebase for other instances, and missed several others. We should remove them, too. The NSImage method `setScalesWhenResized:` has been deprecated since macOS 10.6. "You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details." <https://developer.apple.com/documentation/appkit/nsimage/setscaleswhenresized:> The AppKit (for 10.6) notes indicate: "Sets whether different-sized image representations are scaled to fit the receiver's size. (Deprecated in Mac OS X v10.6. This method was related to caching behavior. In Mac OS X v10.6 and later image caching is no long necessary and as a result there is no replacement necessary.)"
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-19 11:28:37 PDT
Brent Fulgham
Comment 2 2025-05-19 11:31:50 PDT
EWS
Comment 3 2025-05-21 14:46:28 PDT
Committed 295233@main (04842bc8c686): <https://commits.webkit.org/295233@main> Reviewed commits have been landed. Closing PR #45601 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.