[webkit-changes] [WebKit/WebKit] c7cf17: AX: Conversion of PDFView coordinates to screen co...

AndresGonzalezApple noreply at github.com
Wed Jan 4 20:00:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c7cf1700de117cb251a91dd38ba9bed65516b3f7
      https://github.com/WebKit/WebKit/commit/c7cf1700de117cb251a91dd38ba9bed65516b3f7
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

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

  Log Message:
  -----------
  AX: Conversion of PDFView coordinates to screen coordinates for accessibility should happen on the main thread.
https://bugs.webkit.org/show_bug.cgi?id=250099
<rdar://problem/103884859>

Reviewed by Chris Fleizach.

* Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:
(-[WKPDFPluginAccessibilityObject accessibilityAttributeValue:]):
(-[WKPDFPluginAccessibilityObject accessibilityAttributeValue:forParameter:]):
Instead of dispatching to the main thread, the above two methods call directly PDFPlugin::convertFromPDFViewToScreen that in turn dispatches the conversion to the main thread.

(WebKit::PDFPlugin::convertFromPDFViewToScreen const):
(WebKit::PDFPlugin::boundsOnScreen const):
These two PDFPlugin methods now dispatch the conversion to the main thread.

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




More information about the webkit-changes mailing list