| Index: Source/core/rendering/RenderTableRow.cpp
|
| diff --git a/Source/core/rendering/RenderTableRow.cpp b/Source/core/rendering/RenderTableRow.cpp
|
| index 4639668a44cd4d423c367e3d208a6f67b18865d1..8cc0af283c87ee7576270bc3586cec13b7ab794d 100644
|
| --- a/Source/core/rendering/RenderTableRow.cpp
|
| +++ b/Source/core/rendering/RenderTableRow.cpp
|
| @@ -181,6 +181,8 @@ void RenderTableRow::layout()
|
|
|
| m_overflow.clear();
|
| addVisualEffectOverflow();
|
| + // We do not call addOverflowFromCell here. The cell are laid out to be
|
| + // measured above and will be sized correctly in a follow-up phase.
|
|
|
| // We only ever need to issue paint invalidations if our cells didn't, which means that they didn't need
|
| // layout, so we know that our bounds didn't change. This code is just making up for
|
| @@ -244,4 +246,22 @@ RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb
|
| return newRow;
|
| }
|
|
|
| +void RenderTableRow::addOverflowFromCell(const RenderTableCell* cell)
|
| +{
|
| + // Non-row-spanning-cells don't create overflow (they are fully contained within this row).
|
| + if (cell->rowSpan() == 1)
|
| + return;
|
| +
|
| + // Cells only generates visual overflow.
|
| + LayoutRect cellVisualOverflowRect = cell->visualOverflowRectForPropagation(style());
|
| +
|
| + // The cell and the row share the section's coordinate system. However
|
| + // the visual overflow should be determined in the coordinate system of
|
| + // the row, that's why we shift it below.
|
| + LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location().y();
|
| + cellVisualOverflowRect.move(0, cellOffsetLogicalTopDifference);
|
| +
|
| + addVisualOverflow(cellVisualOverflowRect);
|
| +}
|
| +
|
| } // namespace blink
|
|
|