WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
271777
[UnifiedPDF] PDFDocumentLayout::nearestPageIndexForDocumentPoint sometimes returns the incorrect page index
https://bugs.webkit.org/show_bug.cgi?id=271777
Summary
[UnifiedPDF] PDFDocumentLayout::nearestPageIndexForDocumentPoint sometimes re...
Sammy Gill
Reported
2024-03-27 11:55:38 PDT
PDFDocumentLayout::nearestPageIndexForDocumentPoint was implemented with a heuristic to help determine the current page index for the purposes of the next/previous page context menu items. This works good enough for that, but if we need to use this method for other purposes we need to make it more precise. For example, currently it will always return the last page index when the document point is below the PDF not matter where it is exactly
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-03-27 11:55:57 PDT
<
rdar://problem/125502090
>
Sammy Gill
Comment 2
2024-03-27 12:10:57 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/26525
EWS
Comment 3
2024-03-29 18:22:57 PDT
Committed
276852@main
(59d1217ce344): <
https://commits.webkit.org/276852@main
> Reviewed commits have been landed. Closing PR #26525 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug