Bug 233463, patch 5 - Remove nsFrameList(nsIFrame*) ctor. r=bzbarsky

This commit is contained in:
Mats Palmgren
2009-09-18 13:09:36 +02:00
parent 927c863e0b
commit f85d73c25c
19 changed files with 69 additions and 83 deletions

View File

@@ -494,11 +494,7 @@ nsFrameIterator::GetFirstChildInner(nsIFrame* aFrame) {
nsIFrame*
nsFrameIterator::GetLastChildInner(nsIFrame* aFrame) {
nsIFrame* child = aFrame->GetFirstChild(nsnull);
if (!child)
return nsnull;
nsFrameList list(child);
return list.LastChild();
return aFrame->GetChildList(nsnull).LastChild();
}
nsIFrame*
@@ -511,8 +507,7 @@ nsFrameIterator::GetPrevSiblingInner(nsIFrame* aFrame) {
nsIFrame* parent = GetParentFrame(aFrame);
if (!parent)
return nsnull;
nsFrameList list(parent->GetFirstChild(nsnull));
return list.GetPrevSiblingFor(aFrame);
return parent->GetChildList(nsnull).GetPrevSiblingFor(aFrame);
}
@@ -545,20 +540,12 @@ nsFrameIterator::IsPopupFrame(nsIFrame* aFrame)
nsIFrame*
nsVisualIterator::GetFirstChildInner(nsIFrame* aFrame) {
nsIFrame* child = aFrame->GetFirstChild(nsnull);
if (!child)
return nsnull;
nsFrameList list(child);
return list.GetNextVisualFor(nsnull);
return aFrame->GetChildList(nsnull).GetNextVisualFor(nsnull);
}
nsIFrame*
nsVisualIterator::GetLastChildInner(nsIFrame* aFrame) {
nsIFrame* child = aFrame->GetFirstChild(nsnull);
if (!child)
return nsnull;
nsFrameList list(child);
return list.GetPrevVisualFor(nsnull);
return aFrame->GetChildList(nsnull).GetPrevVisualFor(nsnull);
}
nsIFrame*
@@ -566,8 +553,7 @@ nsVisualIterator::GetNextSiblingInner(nsIFrame* aFrame) {
nsIFrame* parent = GetParentFrame(aFrame);
if (!parent)
return nsnull;
nsFrameList list(parent->GetFirstChild(nsnull));
return list.GetNextVisualFor(aFrame);
return parent->GetChildList(nsnull).GetNextVisualFor(aFrame);
}
nsIFrame*
@@ -575,6 +561,5 @@ nsVisualIterator::GetPrevSiblingInner(nsIFrame* aFrame) {
nsIFrame* parent = GetParentFrame(aFrame);
if (!parent)
return nsnull;
nsFrameList list(parent->GetFirstChild(nsnull));
return list.GetPrevVisualFor(aFrame);
return parent->GetChildList(nsnull).GetPrevVisualFor(aFrame);
}