| Index: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| index 2bde0f0ab436ca7d0be1c675afd42fcd2e7431d8..eb568c4f6d569031db814f4c7ede362d4055cb57 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| @@ -1280,13 +1280,10 @@ void LayoutTableSection::computeOverflowFromCells(unsigned totalRows,
|
| for (unsigned r = 0; r < totalRows; r++) {
|
| unsigned nCols = numCols(r);
|
| for (unsigned c = 0; c < nCols; c++) {
|
| - CellStruct& cs = cellAt(r, c);
|
| - LayoutTableCell* cell = cs.primaryCell();
|
| - if (!cell || cs.inColSpan)
|
| - continue;
|
| - if (r < totalRows - 1 && cell == primaryCellAt(r + 1, c))
|
| + const auto* cell = originatingCellAt(r, c);
|
| + if (!cell)
|
| continue;
|
| - addOverflowFromChild(cell);
|
| + addOverflowFromChild(*cell);
|
| #if DCHECK_IS_ON()
|
| hasOverflowingCell |= cell->hasVisualOverflow();
|
| #endif
|
| @@ -1530,7 +1527,7 @@ LayoutRect LayoutTableSection::logicalRectForWritingModeAndDirection(
|
|
|
| CellSpan LayoutTableSection::dirtiedRows(const LayoutRect& damageRect) const {
|
| if (m_forceSlowPaintPathWithOverflowingCell)
|
| - return fullTableRowSpan();
|
| + return fullSectionRowSpan();
|
|
|
| if (!m_grid.size())
|
| return CellSpan(0, 0);
|
| @@ -2138,4 +2135,13 @@ bool LayoutTableSection::mapToVisualRectInAncestorSpaceInternal(
|
| ancestor, transformState, flags);
|
| }
|
|
|
| +bool LayoutTableSection::paintedOutputOfObjectHasNoEffectRegardlessOfSize()
|
| + const {
|
| + // LayoutTableSection paints background from columns.
|
| + if (table()->hasColElements())
|
| + return false;
|
| + return LayoutTableBoxComponent::
|
| + paintedOutputOfObjectHasNoEffectRegardlessOfSize();
|
| +}
|
| +
|
| } // namespace blink
|
|
|