mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
c39244afed
commit
a84bc93687
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user