Skip to content

Commit

Permalink
Fix Internal visionOS build.
Browse files Browse the repository at this point in the history
Unreviewed build-fx.

* Source/WebCore/PAL/pal/system/ios/UserInterfaceIdiom.mm:
(PAL::determineVisionSubidiom):

Canonical link: https://commits.webkit.org/276570@main
  • Loading branch information
JonWBedard committed Mar 22, 2024
1 parent 6b5423c commit 0981e0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebCore/PAL/pal/system/ios/UserInterfaceIdiom.mm
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ void setCurrentUserInterfaceIdiom(UserInterfaceIdiom idiom)
static UserInterfaceIdiom determineVisionSubidiom()
{
#if PLATFORM(VISION)
ALLOW_DEPRECATED_DECLARATIONS_BEGIN
if (!_RSCurrentProcessUsesNewPointsPerMeter())
return UserInterfaceIdiom::VisionLegacy;
ALLOW_DEPRECATED_DECLARATIONS_END
#endif
return UserInterfaceIdiom::Vision;
}
Expand Down

0 comments on commit 0981e0a

Please sign in to comment.