Make sure the for loop terminates. Also caught by bryner, r+sr=me
This commit is contained in:
Родитель
5c861d776b
Коммит
5e0a1a7710
|
@ -285,7 +285,7 @@ nsTableRowFrame::InsertFrames(nsIPresContext* aPresContext,
|
||||||
nsTableCellFrame* prevCellFrame = (nsTableCellFrame *)nsTableFrame::GetFrameAtOrBefore(aPresContext, this, aPrevFrame, cellFrameType);
|
nsTableCellFrame* prevCellFrame = (nsTableCellFrame *)nsTableFrame::GetFrameAtOrBefore(aPresContext, this, aPrevFrame, cellFrameType);
|
||||||
nsVoidArray cellChildren;
|
nsVoidArray cellChildren;
|
||||||
for (nsIFrame* childFrame = aFrameList; childFrame;
|
for (nsIFrame* childFrame = aFrameList; childFrame;
|
||||||
childFrame->GetNextSibling()) {
|
childFrame = childFrame->GetNextSibling()) {
|
||||||
nsCOMPtr<nsIAtom> frameType;
|
nsCOMPtr<nsIAtom> frameType;
|
||||||
childFrame->GetFrameType(getter_AddRefs(frameType));
|
childFrame->GetFrameType(getter_AddRefs(frameType));
|
||||||
if (IS_TABLE_CELL(frameType.get())) {
|
if (IS_TABLE_CELL(frameType.get())) {
|
||||||
|
|
|
@ -285,7 +285,7 @@ nsTableRowFrame::InsertFrames(nsIPresContext* aPresContext,
|
||||||
nsTableCellFrame* prevCellFrame = (nsTableCellFrame *)nsTableFrame::GetFrameAtOrBefore(aPresContext, this, aPrevFrame, cellFrameType);
|
nsTableCellFrame* prevCellFrame = (nsTableCellFrame *)nsTableFrame::GetFrameAtOrBefore(aPresContext, this, aPrevFrame, cellFrameType);
|
||||||
nsVoidArray cellChildren;
|
nsVoidArray cellChildren;
|
||||||
for (nsIFrame* childFrame = aFrameList; childFrame;
|
for (nsIFrame* childFrame = aFrameList; childFrame;
|
||||||
childFrame->GetNextSibling()) {
|
childFrame = childFrame->GetNextSibling()) {
|
||||||
nsCOMPtr<nsIAtom> frameType;
|
nsCOMPtr<nsIAtom> frameType;
|
||||||
childFrame->GetFrameType(getter_AddRefs(frameType));
|
childFrame->GetFrameType(getter_AddRefs(frameType));
|
||||||
if (IS_TABLE_CELL(frameType.get())) {
|
if (IS_TABLE_CELL(frameType.get())) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче