Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 22f3736b4925f8e6095b5f64931c0941f9cfbd8e
      
https://github.com/WebKit/WebKit/commit/22f3736b4925f8e6095b5f64931c0941f9cfbd8e
  Author: Tim Horton <timothy_hor...@apple.com>
  Date:   2024-02-26 (Mon, 26 Feb 2024)

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

  Log Message:
  -----------
  UnifiedPDF: PDF in embed/object/iframe repaint constantly when the main frame 
scrolls
https://bugs.webkit.org/show_bug.cgi?id=270123

Reviewed by Simon Fraser.

* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::geometryDidChange):
Avoid calling updateLayout() (which is a full repaint and incredibly expensive)
every time the plugin-to-root-view transform changes; we only need to rebuild
if the size of the plugin changes.

This avoids constant repaints when scrolling the main frame with an embedded 
PDF.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to