Bug 1404179 - Prepend rather than append frames from overflow list of prev-in-flow for ruby frames. r=dholbert

MozReview-Commit-ID: 1xUEf1S6GEK
This commit is contained in:
Xidorn Quan
2017-10-03 16:19:41 +11:00
parent 64be2ede6b
commit f5bc6f90fd
7 changed files with 103 additions and 24 deletions

View File

@@ -314,12 +314,12 @@ nsRubyBaseContainerFrame::Reflow(nsPresContext* aPresContext,
mDescendantLeadings.Reset();
nsIFrame* lineContainer = aReflowInput.mLineLayout->LineContainerFrame();
MoveOverflowToChildList(lineContainer);
MoveInlineOverflowToChildList(lineContainer);
// Ask text containers to drain overflows
AutoRubyTextContainerArray textContainers(this);
const uint32_t rtcCount = textContainers.Length();
for (uint32_t i = 0; i < rtcCount; i++) {
textContainers[i]->MoveOverflowToChildList(lineContainer);
textContainers[i]->MoveInlineOverflowToChildList(lineContainer);
}
WritingMode lineWM = aReflowInput.mLineLayout->GetWritingMode();