Bug 271777

Summary: [UnifiedPDF] PDFDocumentLayout::nearestPageIndexForDocumentPoint sometimes returns the incorrect page index
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: PDFAssignee: Sammy Gill <sgill26>
Status: RESOLVED FIXED    
Severity: Normal CC: thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
Radar WebKit Bug Importer
Comment 1 2024-03-27 11:55:57 PDT
Sammy Gill
Comment 2 2024-03-27 12:10:57 PDT
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.