[Webkit-unassigned] [Bug 229556] AX: Make PDFs loaded via <embed> accessible
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 10 06:43:09 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=229556
--- Comment #16 from Andres Gonzalez <andresg_22 at apple.com> ---
(In reply to Tyler Wilcock from comment #13)
> Created attachment 437808 [details]
> Patch
--- a/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm
+++ a/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm
+- (id)accessibilityHitTestIntPoint:(const WebCore::IntPoint&)point
+{
+ auto convertedPoint = _pdfPlugin->convertFromRootViewToPDFView(point);
+ return [_pdfLayerController accessibilityHitTest:convertedPoint];
+}
+
- (id)accessibilityHitTest:(NSPoint)point
{
- point = _pdfPlugin->convertFromRootViewToPDFView(WebCore::IntPoint(point));
- return [_pdfLayerController accessibilityHitTest:point];
+ return [self accessibilityHitTestIntPoint:WebCore::IntPoint(point)];
}
Why we need to split this method into two?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210910/fd8de476/attachment-0001.htm>
More information about the webkit-unassigned
mailing list