rdar://83501315 _paintBehaviorForDestinationContext currently always returns `Normal` for contexts that aren't a bitmap context. AppKit now provides a context that is of type kCGContextTypeDisplayList, and we want to still potentially consider it a snapshot draw (if the other conditions below are met).
Created attachment 447846 [details] Patch
No test yet, but happy to add one if anyone has ideas on how to test this. Ideally we'd test that images get sync decoded from AppKit, but it might be sufficient to have a unit test that passes a display list context, and confirms that the PaintBehavior::Snapshotting flag is set (if this is observable somehow).
Committed r287951 (245980@main): <https://commits.webkit.org/245980@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447846 [details].