Never let a non-zero-size pixel snap to zero size
The logic for LayoutUnit::SnapSizeToPixel maps the size to the closest pixel align edge given a location. When a size of width less than 1 happens to straddle a pixel aligned edge this forces the size to zero. Force the size to always be non-zero if the input size is non-zero, and change PhysicalRect to use the LayoutRect snapping to get correct cull rects. Bug: 793785 Change-Id: Ia4c30d10c389fb4677006441aac9ee380a7c2f41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948057 Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#726516}
Showing
Please register or sign in to comment