[TablesNG] Move HasNonCollapsedBorderDecoration to PhysicalFragment
HasNonCollapsedBorderDecoration is a LayoutObject flag used in painting. If flag is set, fragment participates in BorderDecoration painting. Setting this flag in a way compatible with LayoutNG was problematic: In Legacy, flag got reset every time style changed, and manually set in Legacy table layout. Because collapsed_borders is a property of Table, Cell needed its table to set the flag properly. Table was not available to cell when SetStyle was initially called, so flag had to be manually set in LayoutNGTableRow::AddChild. This patch adds HasNonCollapsedBorderDecoration flag to table cells. The flag has to be passed from LayoutNGTableRow through ConstraintSpace. Bug: 958381 Change-Id: I7800d0c918ff78139df6748bed8a95c64cb19395 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2473806 Commit-Queue: Aleks Totic <atotic@chromium.org> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#818178}
Showing
Please register or sign in to comment