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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user