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

@ -59,20 +59,6 @@ nsTableCellFrame::~nsTableCellFrame()
NS_IMPL_FRAMEARENA_HELPERS(nsTableCellFrame)
nsTableCellFrame*
nsTableCellFrame::GetNextCell() const
{
nsIFrame* childFrame = GetNextSibling();
while (childFrame) {
nsTableCellFrame *cellFrame = do_QueryFrame(childFrame);
if (cellFrame) {
return cellFrame;
}
childFrame = childFrame->GetNextSibling();
}
return nullptr;
}
void
nsTableCellFrame::Init(nsIContent* aContent,
nsContainerFrame* aParent,