Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 71d412b

Browse files
Trevor Northashkulz
authored andcommitted
Ensure we have a first cell to measure when checking required table height
1 parent b4ae708 commit 71d412b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/3rdparty/webkit/Source/WebCore/rendering/RenderTable.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ void RenderTable::layout()
343343
if (m_firstBody) {
344344
// FIXME: Calculate maximum required height across all cells in first body row
345345
RenderTableCell* firstCell = m_firstBody->primaryCellAt(0, 0);
346-
requiredHeight += firstCell->contentLogicalHeight() + firstCell->paddingTop(false) + firstCell->paddingBottom(false) + vBorderSpacing();
346+
if (firstCell) {
347+
requiredHeight += firstCell->contentLogicalHeight() + firstCell->paddingTop(false) + firstCell->paddingBottom(false) + vBorderSpacing();
348+
}
347349
}
348350
if (requiredHeight > remainingLogicalHeight) {
349351
setPaginationStrut(remainingLogicalHeight);

0 commit comments

Comments
 (0)