Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b778d4ad4c85bd200a79901424400452ca41bea
      
https://github.com/WebKit/WebKit/commit/4b778d4ad4c85bd200a79901424400452ca41bea
  Author: Aditya Keerthi <[email protected]>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ios/WKContentView.mm
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

  Log Message:
  -----------
  [iOS] 2-up PDF display mode should only be available in the regular 
horizontal size class
https://bugs.webkit.org/show_bug.cgi?id=307720
rdar://170272249

Reviewed by Abrar Rahman Protyasha.

2-up PDF display is not ideal in constrained sizes. Restrict support to the
regular horizontal size class.

* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _commonInitializationWithProcessPool:configuration:]):
(-[WKContentView _updatePDFDisplayModeForHorizontalSizeClassChangeIfNeeded]):
(-[WKContentView _horizontalSizeClassDidChange]):

If the size class drops out of regular and the PDF is displayed in 2-up, force
it back into single page mode.

* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView continueContextMenuInteraction:completion:]):

Only offer the context menu to toggle display mode when in the regular
horizontal size class.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to