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:
Jonathan Kew
2025-02-26 09:13:48 +00:00
parent 4dd29317da
commit f62e754650
2 changed files with 2 additions and 4 deletions

View File

@@ -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 {