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

dirty
This commit is contained in:
troy%netscape.com 1999-09-27 20:53:05 +00:00
parent 1d0621c58c
commit 7a30e821a3
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();

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();

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();

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();

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();

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();