Fix for bug 78820 - right aligned floater in nowrap blocks are not
positioned correctly. r= alexsavulov sr= kin git-svn-id: svn://10.0.0.236/trunk@128299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e79ece1418
commit
aef6811a4b
@ -1948,12 +1948,14 @@ nsBlockFrame::PrepareResizeReflow(nsBlockReflowState& aState)
|
||||
//
|
||||
// For inline lines with no-wrap, the only way things
|
||||
// could change is if there is a percentage-sized child.
|
||||
// However, right floaters within such lines might need to be
|
||||
// repositioned, so we check for floaters as well.
|
||||
if (line->IsBlock() ||
|
||||
line->HasPercentageChild() ||
|
||||
line->HasFloaters() ||
|
||||
(wrapping &&
|
||||
((line != mLines.back() && !line->HasBreak()) ||
|
||||
line->ResizeReflowOptimizationDisabled() ||
|
||||
line->HasFloaters() ||
|
||||
line->IsImpactedByFloater() ||
|
||||
(line->mBounds.XMost() > newAvailWidth)))) {
|
||||
line->MarkDirty();
|
||||
|
||||
@ -1948,12 +1948,14 @@ nsBlockFrame::PrepareResizeReflow(nsBlockReflowState& aState)
|
||||
//
|
||||
// For inline lines with no-wrap, the only way things
|
||||
// could change is if there is a percentage-sized child.
|
||||
// However, right floaters within such lines might need to be
|
||||
// repositioned, so we check for floaters as well.
|
||||
if (line->IsBlock() ||
|
||||
line->HasPercentageChild() ||
|
||||
line->HasFloaters() ||
|
||||
(wrapping &&
|
||||
((line != mLines.back() && !line->HasBreak()) ||
|
||||
line->ResizeReflowOptimizationDisabled() ||
|
||||
line->HasFloaters() ||
|
||||
line->IsImpactedByFloater() ||
|
||||
(line->mBounds.XMost() > newAvailWidth)))) {
|
||||
line->MarkDirty();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user