зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121748 - patch 1 - Make sure to update the frame dimensions before calling ApplyRelativePositioning. r=jfkthame
This commit is contained in:
Родитель
fc9922fd36
Коммит
2df582470e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче