Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91da502c75ce04d454197a360eefa760d09ca59e
      
https://github.com/WebKit/WebKit/commit/91da502c75ce04d454197a360eefa760d09ca59e
  Author: Simon Fraser <[email protected]>
  Date:   2023-01-28 (Sat, 28 Jan 2023)

  Changed paths:
    M Source/WebCore/platform/ios/PlatformScreenIOS.mm
    M Source/WebCore/platform/mac/PlatformScreenMac.mm

  Log Message:
  -----------
  Clean up collectScreenProperties()
https://bugs.webkit.org/show_bug.cgi?id=251291
rdar://104761082

Reviewed by Tim Horton.

Tidy up the collectScreenProperties() code for macOS and iOS.

Instead of lots of local variables, just fill in a `ScreenData` and WTFMove() 
it into the hash map.
Move complex code that gets supportsHighDynamicRange on macOS into a lambda.

* Source/WebCore/platform/ios/PlatformScreenIOS.mm:
(WebCore::collectScreenProperties):
* Source/WebCore/platform/mac/PlatformScreenMac.mm:
(WebCore::collectScreenProperties):

Canonical link: https://commits.webkit.org/259527@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to