зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431781 - Report at least OverflowIncomplete reflow status when we skip reflowing OverflowContainer children and have a next-in-flow. r=dholbert
This commit is contained in:
Родитель
a72b687b28
Коммит
b685b5d84a
|
@ -1160,6 +1160,13 @@ nsContainerFrame::ReflowOverflowContainerChildren(nsPresContext* aPres
|
|||
if (frame->GetPrevInFlow()->GetParent() != GetPrevInFlow()) {
|
||||
// frame's prevInFlow has moved, skip reflowing this frame;
|
||||
// it will get reflowed once it's been placed
|
||||
if (GetNextInFlow()) {
|
||||
// We report OverflowIncomplete status in this case to avoid our parent
|
||||
// deleting our next-in-flows which might destroy non-empty frames.
|
||||
nsReflowStatus status;
|
||||
status.SetOverflowIncomplete();
|
||||
aStatus.MergeCompletionStatusFrom(status);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// If the available vertical height has changed, we need to reflow
|
||||
|
|
Загрузка…
Ссылка в новой задаче