Make PaintLayer::size_ a LayoutSize
Snapping PaintLayer size to the pixel grid too early causes a couple of problems: - It can inadvertently trigger auto scrollbars to be created for a box with non-pixel-aligned location and non-pixel-aligned content size. This is the root cause of the bug linked below. - There are a few places in the code that call LayoutBox::SetLocation without updating the box'es PaintLayer's size. Since PaintLayer size relies on snapping to the box'es location, this can cause the PaintLayer size to be off by one pixel. That's what happened in the new test baseline in this patch: the layer size in the old expectation is actually off by one pixel. BUG=777095 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I58362d64eff39c5499417f038f5e6ed5eed6f1e3 Reviewed-on: https://chromium-review.googlesource.com/752030Reviewed-by:Tien-Ren Chen <trchen@chromium.org> Reviewed-by:
Steve Kobes <skobes@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Stefan Zager <szager@chromium.org> Cr-Commit-Position: refs/heads/master@{#515826}
Showing
Please register or sign in to comment