-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnifiedPDF] Implement two-up display mode
https://bugs.webkit.org/show_bug.cgi?id=262454 rdar://116296737 Reviewed by Dan Glastonbury. Implement two-up display mode, which displays pairs of pages side-by-side. In this mode, the height of the pair of pages is the larger of the two heights, and pages with unequal heights are vertically centered in the row. If there is a single page on the last row, it's centered (which is also the case for a single page PDF). Have `PDFDocumentLayout::updateLayout()` keep track of the width of page pairs when necessary, which is passed to `layoutTwoUpColumn()`. * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFDocumentLayout.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFDocumentLayout.mm: (WebKit::PDFDocumentLayout::updateLayout): (WebKit::PDFDocumentLayout::layoutPages): (WebKit::PDFDocumentLayout::layoutSingleColumn): (WebKit::PDFDocumentLayout::layoutTwoUpColumn): Canonical link: https://commits.webkit.org/268733@main
- Loading branch information
Showing
2 changed files
with
87 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters