-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[visionOS] Refine activation rules for Image Fullscreen
https://bugs.webkit.org/show_bug.cgi?id=272218 <rdar://125913434> Reviewed by Said Abou-Hallawa. Introduce a `shouldUseQuickLookForFullscreen()` method on Images. It defaults to false and queries the ImageDecoder for bitmap images. Gate the use of Image Fullscreen on this flag. * Source/WebCore/platform/graphics/BitmapImage.h: * Source/WebCore/platform/graphics/BitmapImageSource.cpp: (WebCore::BitmapImageSource::shouldUseQuickLookForFullscreen const): * Source/WebCore/platform/graphics/BitmapImageSource.h: * Source/WebCore/platform/graphics/Image.h: (WebCore::Image::shouldUseQuickLookForFullscreen const): * Source/WebCore/platform/graphics/ImageDecoder.h: (WebCore::ImageDecoder::shouldUseQuickLookForFullscreen const): * Source/WebCore/platform/graphics/ImageSource.h: (WebCore::ImageSource::shouldUseQuickLookForFullscreen const): Wire the `shouldUseQuickLookForFullscreen()` check to the ImageDecoder. * Source/WebCore/platform/graphics/cg/ImageDecoderCG.h: * Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp: (WebCore::ImageDecoderCG::shouldUseQuickLookForFullscreen const): Add the WKA entry point. * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp: (WebKit::WebFullScreenManager::enterFullScreenForElement): Add the `shouldUseQuickLookForFullscreen()` check. Canonical link: https://commits.webkit.org/277177@main
- Loading branch information
1 parent
6e624ea
commit 4ac0a7c
Showing
9 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters