[webkit-changes] [WebKit/WebKit] 5a50cf: Attachments: Tap to download looks huge on visionOS

Richard Robinson noreply at github.com
Thu Jul 13 09:56:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5a50cf705fe831dbdf8333b654234d3256b114ef
      https://github.com/WebKit/WebKit/commit/5a50cf705fe831dbdf8333b654234d3256b114ef
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2023-07-13 (Thu, 13 Jul 2023)

  Changed paths:
    M LayoutTests/fast/attachment/mac/wide-attachment-image-controls-basic-expected.txt
    M LayoutTests/platform/ios-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt
    M LayoutTests/platform/mac-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt
    M Source/WebCore/html/HTMLAttachmentElement.cpp
    M Source/WebCore/html/shadow/attachmentElementShadow.css

  Log Message:
  -----------
  Attachments: Tap to download looks huge on visionOS
https://bugs.webkit.org/show_bug.cgi?id=259094
rdar://109599374

Reviewed by Tim Nguyen.

Adjust the size of the attachment element components to compensate for the scale difference of visionOS.

* Source/WebCore/html/HTMLAttachmentElement.cpp:
(WebCore::attachmentIconSizeProperty):
(WebCore::HTMLAttachmentElement::ensureWideLayoutShadowTree):
(WebCore::HTMLAttachmentElement::requestWideLayoutIconIfNeeded):
* Source/WebCore/html/shadow/attachmentElementShadow.css:
(div#attachment-container):
(img#attachment-icon,):
(div#attachment-action):
(div#attachment-title):
(div#attachment-subtitle):
(button#attachment-save-button):

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




More information about the webkit-changes mailing list