Bug 1127679 - Fix use of incorrect writing mode in flex-item relative positioning. r=smontagu

This commit is contained in:
Jonathan Kew 2015-02-02 18:29:52 +00:00
Родитель 909e578fea
Коммит f665472a1c
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -3885,7 +3885,11 @@ nsFlexContainerFrame::ReflowFlexItem(nsPresContext* aPresContext,
"We gave flex item unconstrained available height, so it "
"should be complete");
childReflowState.ApplyRelativePositioning(&aFramePos, aContainerWidth);
LogicalMargin offsets =
childReflowState.ComputedLogicalOffsets().ConvertTo(outerWM, wm);
nsHTMLReflowState::ApplyRelativePositioning(aItem.Frame(), outerWM,
offsets, &aFramePos,
aContainerWidth);
FinishReflowChild(aItem.Frame(), aPresContext,
childDesiredSize, &childReflowState,