Bug 1121748 - patch 1 - Make sure to update the frame dimensions before calling ApplyRelativePositioning. r=jfkthame

This commit is contained in:
Simon Montagu 2015-01-18 22:01:57 -08:00
Родитель fc9922fd36
Коммит 2df582470e
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -428,6 +428,10 @@ nsBlockReflowContext::PlaceBlock(const nsHTMLReflowState& aReflowState,
LogicalPoint logPos =
LogicalPoint(mWritingMode, mICoord, mBCoord).
ConvertTo(frameWM, mWritingMode, mContainerWidth - mMetrics.Width());
// ApplyRelativePositioning in right-to-left writing modes needs to
// know the updated frame width
mFrame->SetSize(mWritingMode, mMetrics.Size(mWritingMode));
aReflowState.ApplyRelativePositioning(&logPos, mContainerWidth);
// Now place the frame and complete the reflow process