Bug 271777
| Summary: | [UnifiedPDF] PDFDocumentLayout::nearestPageIndexForDocumentPoint sometimes returns the incorrect page index | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sammy Gill <sgill26> |
| Component: | Assignee: | 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
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
<rdar://problem/125502090>
Sammy Gill
Pull request: https://github.com/WebKit/WebKit/pull/26525
EWS
Committed 276852@main (59d1217ce344): <https://commits.webkit.org/276852@main>
Reviewed commits have been landed. Closing PR #26525 and removing active labels.