Improve LayoutTable outer collapsed border calculation
Remove code in LayoutTable and LayoutTableSection for computing outer borders. Use cells' cached collapsed borders instead. This is mostly a pure refactoring, except it affects some corner cases: - Previously collapsed borders for colgroup were not included in table's border. See changes to results of paint/invalidation/table/cached-change-border-color.html. - Previously when the row and the table were in different inline direction and the the width of some collapsed border was in odd number, the distribution of the 1 pixel into half outer and inner borders was inconsistent. Now we always give the 1 pixel in the same way defined in LayoutTableCell::CollapsedBOrderHalfXXX(). See changes to results of fast/table/border-collapsing/002.html. Change-Id: I74e6d9173e5d46933fa7456cb713c370e9e7d464 Reviewed-on: https://chromium-review.googlesource.com/515606 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:David Grogan <dgrogan@chromium.org> Reviewed-by:
Walter Korman <wkorman@chromium.org> Cr-Commit-Position: refs/heads/master@{#476219}
Showing



42.9 KB
10.5 KB
22.7 KB

25.5 KB

25.3 KB

25.6 KB

25.3 KB



25.3 KB
4.74 KB
8.52 KB



25.2 KB
4.7 KB
8.41 KB

25.1 KB
This diff is collapsed.