Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 42e1ee204fc91f5c75dcef4dc8d764e9e70f2ba8
      
https://github.com/WebKit/WebKit/commit/42e1ee204fc91f5c75dcef4dc8d764e9e70f2ba8
  Author: Yoel Hawa <[email protected]>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.h

  Log Message:
  -----------
  [visionOS] Relax criteria for Panoramic images to delegate fullscreen to 
Quick Look
https://bugs.webkit.org/show_bug.cgi?id=281632
<rdar://136329595>

Reviewed by Said Abou-Hallawa.

On visionOS, delegate element fullscreen to Quick Look for any image
that is wide enough to be a Panoramic image, even if it isn't large
enough. That way, if `srcset` switches the image source to one large
enough to be a Panoramic image after going fullscreen, Quick Look
will already be open to display it.

* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::ImageDecoderCG::isMaybePanoramic const):
(WebCore::ImageDecoderCG::shouldUseQuickLookForFullscreen const):
(WebCore::ImageDecoderCG::isPanoramic const): Deleted.
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.h:
Loosen the criteria for panorama detection.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to