-
Andrey Kosyakov authored
This fixes a regression after https://crrev.com/c/1861035 that caused a web page to require more printed pages due to an inconsistency of rounding directions. We used to implicitly round the rect returned by LayoutView::DocumentRect(), as it used to return a snapped-to-int rect. Now that we've started returning a PhysicalRect, it gets to ResizePageRectsKeepingRatio() as is and gets truncated there. So let's round sizes explicitly before passing to ResizePageRectsKeepingRatio(). BUG=650768, b/142742179 Change-Id: I55a9df6977f464452fc4878517796717761c5b07 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1867126Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#709153}
950533a3