Fix for bug 78820 - right aligned floater in nowrap blocks are not

positioned correctly. r= alexsavulov sr= kin
This commit is contained in:
alexsavulov%netscape.com 2002-08-27 22:31:24 +00:00
Родитель 8ac64886f2
Коммит 0bab51abbe
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

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