Bug 1769799 - Handle inline-axis directionality correctly in ReflowInput::InitAbsoluteConstraints. r=layout-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D239662
This commit is contained in:
@@ -1689,7 +1689,8 @@ void ReflowInput::InitAbsoluteConstraints(const ReflowInput* aCBReflowInput,
|
||||
}
|
||||
|
||||
if (iStartIsAuto && iEndIsAuto) {
|
||||
if (cbwm.IsBidiLTR() != hypotheticalPos.mWritingMode.IsBidiLTR()) {
|
||||
if (cbwm.IsInlineReversed() !=
|
||||
hypotheticalPos.mWritingMode.IsInlineReversed()) {
|
||||
offsets.IEnd(cbwm) = hypotheticalPos.mIStart;
|
||||
iEndIsAuto = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user