mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-23 04:43:07 +09:00
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:
parent
0070369171
commit
02487fecd6
4 changed files with 27 additions and 28 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue