[webkit-changes] [WebKit/WebKit] da5356: Page acts as zoomed even when it is not on visionOS.

megangardner noreply at github.com
Fri Jul 7 14:22:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: da535631d69cc22753758c77b058981ee8bb3e09
      https://github.com/WebKit/WebKit/commit/da535631d69cc22753758c77b058981ee8bb3e09
  Author: Megan Gardner <megan_gardner at apple.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm

  Log Message:
  -----------
  Page acts as zoomed even when it is not on visionOS.
https://bugs.webkit.org/show_bug.cgi?id=258991
rdar://111176298

Reviewed by Wenson Hsieh.

visionOS is at a constant scale factor, and scales coming from WebCore need to be compared with
WebKit::scalesAreEssentiallyEqual, not traditional comparison operators because
WebCore stores the page scale factor as float instead of double. When we get a scale from WebCore,
we need to ignore differences that are within a small rounding error, with enough leeway
to handle rounding differences that may result from round-tripping through UIScrollView.

* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _updateScrollViewForTransaction:]):

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




More information about the webkit-changes mailing list