зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 78820 - right aligned floater in nowrap blocks are not
positioned correctly. r= alexsavulov sr= kin
This commit is contained in:
Родитель
8ac64886f2
Коммит
0bab51abbe
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче