Land the relevant parts of bug 534082. r=tnikkel sr=roc a1.9.0.18=dveditz

git-svn-id: svn://10.0.0.236/trunk@259371 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2010-01-11 22:12:18 +00:00
parent 00fe7b56a4
commit cbbccde776

View File

@@ -5588,14 +5588,14 @@ nsBlockFrame::StealFrame(nsPresContext* aPresContext,
if (searchingOverflowList) {
// Erase line, but avoid making the overflow line list empty
nsLineList* lineList = RemoveOverflowLines();
lineList->erase(line);
line = lineList->erase(line);
if (!lineList->empty()) {
nsresult rv = SetOverflowLines(lineList);
NS_ENSURE_SUCCESS(rv, rv);
}
}
else {
mLines.erase(line);
line = mLines.erase(line);
}
lineBox->Destroy(aPresContext->PresShell());
if (line != line_end) {