Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NG table collapsed border pixel-snapping and clipping
This fixes the following issues: - We missed pixel-snapping of the collapsed borders. Add ObjectPainterBase::DrawBoxSide() which accepts IntRect instead of float parameters. Previously if the float parameters were not pixel-snapped, they would be converted to int by truncating which implicitly snapped to whole pixels incorrectly. - We missed pixel-snapping and shrinking by border outsets for the clip when painting background for layered table parts. Combine the clip logic for cell background and other table part background with correct pixel-snapping and clip rect, with a test. Bug: 1180773 Change-Id: I81a967b3de08c116eed97a08e0f608a966088f40 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2717524 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Aleks Totic <atotic@chromium.org> Reviewed-by: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#857955}
- Loading branch information