[css-tables] Fix crash in column collapsing
An off-by-one error could leave an empty spot for a cell at the end of each row in a section's grid_. The 14 existing callers of section->NumCols(row) all had null checks that effectively ignored empty cells via one of the methods below. section->OriginatingCellAt(r,c) section->GridCellAt(r,c).PrimaryCell() section->GridCellAt(r,c).HasCells() I suspect the column collapsing code that exposed this is also buggy but I'll follow that up in a future patch. Bug: 761192 Change-Id: Ifac74a0189ad50f1bcfc44343fd644d3baa12c44 Reviewed-on: https://chromium-review.googlesource.com/688752Reviewed-by:Morten Stenshorne <mstensho@opera.com> Commit-Queue: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/master@{#505191}
Showing
Please register or sign in to comment