Fix for bug #14959. Made sure that lines with floaters are also marked

dirty


git-svn-id: svn://10.0.0.236/trunk@49146 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-09-27 20:53:05 +00:00
parent 32c780214c
commit 2379177245
6 changed files with 30 additions and 12 deletions

View File

@@ -1907,9 +1907,12 @@ nsBlockFrame::PrepareResizeReflow(nsBlockReflowState& aState)
// - it's inline (not a block)
// - it's either the last line in the block -or- it ended with a
// break after
// - there are no floaters associated with the line (reflowing the
// placeholder frame causes the floater to be reflowed)
if (line->IsBlock() ||
(line->mNext && (line->mBreakType != NS_STYLE_CLEAR_NONE)) ||
(line->mCombinedArea.XMost() > newAvailWidth)) {
(line->mNext && (line->mBreakType == NS_STYLE_CLEAR_NONE)) ||
line->mFloaters.NotEmpty() ||
(line->mBounds.XMost() > newAvailWidth)) {
// We have to mark the line dirty
line->MarkDirty();