mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Fix for bug #14959. Made sure that lines with floaters are also marked
dirty
This commit is contained in:
parent
1d0621c58c
commit
7a30e821a3
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user