Bug 291757. Propagate inline clearance status for lines we reflowed as well as lines we didn't. This ensures that during incremental reflow, we'll reflow lines which have a <br clear=> above them if their clearance is changing. r+sr=dbaron,a=benjamin

This commit is contained in:
roc+%cs.cmu.edu 2005-07-28 19:50:04 +00:00
parent c39244afed
commit a84bc93687

View File

@ -2306,17 +2306,17 @@ nsBlockFrame::ReflowDirtyLines(nsBlockReflowState& aState, PRBool aTryPull)
}
}
// Record if we need to clear floats before reflowing the next
// line. Note that inlineFloatBreakType will be handled and
// cleared before the next line is processed, so there is no
// need to combine break types here.
if (line->HasFloatBreakAfter()) {
inlineFloatBreakType = line->GetBreakTypeAfter();
}
needToRecoverState = PR_TRUE;
}
// Record if we need to clear floats before reflowing the next
// line. Note that inlineFloatBreakType will be handled and
// cleared before the next line is processed, so there is no
// need to combine break types here.
if (line->HasFloatBreakAfter()) {
inlineFloatBreakType = line->GetBreakTypeAfter();
}
if (LineHasClear(line.get())) {
foundAnyClears = PR_TRUE;
}