Fix rounding of very large and very small LayoutUnits.
Previously, LayoutUnit's between NearlyMax() and Max() would round down, even though their fractional parts are > 0.5. Similarly, LayoutUnit's between Min() and NearlyMin() would round up (toward zero), even though their fractional parts are < -0.5. Change-Id: I824db066f6f45b58512a30ed32c1d280604bfefe Reviewed-on: https://chromium-review.googlesource.com/592854Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Stefan Zager <szager@chromium.org> Cr-Commit-Position: refs/heads/master@{#491071}
Showing
Please register or sign in to comment