Bug 496823. Blocks can implement GetLastChild() much faster than by just getting first child and iterating its siblings. r=roc
This commit is contained in:
@@ -5725,13 +5725,13 @@ AdjustAppendParentForAfterContent(nsPresContext* aPresContext,
|
||||
static nsIFrame*
|
||||
FindAppendPrevSibling(nsIFrame* aParentFrame, nsIFrame* aAfterFrame)
|
||||
{
|
||||
nsFrameList childList(aParentFrame->GetFirstChild(nsnull));
|
||||
if (aAfterFrame) {
|
||||
nsFrameList childList(aParentFrame->GetFirstChild(nsnull));
|
||||
NS_ASSERTION(aAfterFrame->GetParent() == aParentFrame, "Wrong parent");
|
||||
return childList.GetPrevSiblingFor(aAfterFrame);
|
||||
}
|
||||
|
||||
return childList.LastChild();
|
||||
return aParentFrame->GetLastChild(nsnull);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user