Issue #1355 - Speed up the traversal of a table row frame's child cells

Speed up getting the first cellframe in a row and the next cellframe after the given one
This commit is contained in:
win7-7 2020-01-29 11:14:34 +02:00 committed by Roy Tam
commit 02487fecd6
4 changed files with 27 additions and 28 deletions

View file

@ -304,18 +304,6 @@ GetBSizeOfRowsSpannedBelowFirst(nsTableCellFrame& aTableCellFrame,
return bsize;
}
nsTableCellFrame*
nsTableRowFrame::GetFirstCell()
{
for (nsIFrame* childFrame : mFrames) {
nsTableCellFrame *cellFrame = do_QueryFrame(childFrame);
if (cellFrame) {
return cellFrame;
}
}
return nullptr;
}
/**
* Post-reflow hook. This is where the table row does its post-processing
*/