[webkit-changes] [WebKit/WebKit] 6b4558: REGRESSION(283487 at main): Unexpected scrolling occu...

Abrar Rahman Protyasha noreply at github.com
Wed Sep 18 18:29:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6b4558908ef8a765592137728f12f33eb7c6e81e
      https://github.com/WebKit/WebKit/commit/6b4558908ef8a765592137728f12f33eb7c6e81e
  Author: Abrar Rahman Protyasha <a_protyasha at apple.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFDocumentLayout.mm

  Log Message:
  -----------
  REGRESSION(283487 at main): Unexpected scrolling occurs when resizing PDF window
https://bugs.webkit.org/show_bug.cgi?id=279941
rdar://136256301

Reviewed by Aditya Keerthi.

In 283487 at main, we introdcued a behavior change in the PDF document
layout updates, where we would force document layout page scale updates
whenever the page geometry changed. The intention was to ensure a
document layout page scale update on every encrypted document unlock.
However, we already plumb through ShouldUpdateAutoSizeScale::Yes when we
ask for a layout update after unlocking an encrypted document. As such,
this behavior change is unnecessary and expectedly problematic when we
resize the window.

This patch partially reverts said behavior.

* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFDocumentLayout.mm:
(WebKit::PDFDocumentLayout::updateLayout):

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



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


More information about the webkit-changes mailing list