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

  Changed paths:
    M Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm

  Log Message:
  -----------
  [iOS] Refactor `WKPDFPageNumberIndicator` to use a `UIButton`
https://bugs.webkit.org/show_bug.cgi?id=306811
rdar://169480446

Reviewed by Abrar Rahman Protyasha.

In preparation for making the page number indicator interactive, and display
layout options, use a `UIButton` instead of a label and effect view.

* Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm:
(-[WKPDFPageNumberIndicator initWithFrame:view:pageCount:]):

`setAdjustsFontSizeToFitWidth` is no longer specified on the label, since the
button and the indicator view itself are sized to fit the content.

(-[WKPDFPageNumberIndicator sizeThatFits:]):
(-[WKPDFPageNumberIndicator _updateLabel:]):

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



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

Reply via email to