Brad Werth 67f8a6e7ac Bug 1764201 Part 2: Make Gecko_MediaFeatures_VideoDynamicRange check per-screen HDR. r=emilio
This makes all platforms report video-dynamic-range:high if the screen
most closely associated with the document (according to the logic of
nsDeviceContext::FindScreen) is HDR capable.

This removes the LookAndFeel id for VideoDynamicRange, since it is only
used by Gecko_MediaFeatures_VideoDynamicRange, which is being modified
here to use the nsDeviceContext instead.

It also removes gfxPlatform::supportsHDR and its implementations, as it
is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D203329
2024-03-19 13:52:31 +00:00
..