Add draw_utils::CenterRectHorizontally().
In single-view, pages are horizontally centered within the document. This centering is being done in PDFiumEngine, making it difficult to test. This CL moves the centering logic for single-view to draw_utils::CenterRectHorizontally(). This allows us to test the logic. Bug: 51472 Change-Id: Idd67cde3c57d4155c9e02ca82a36ad19a6205f08 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730524 Commit-Queue: Jeremy Chinsen <chinsenj@google.com> Reviewed-by:Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#683387}
Showing
Please register or sign in to comment