From 37cb84df414dbc7e56c1278ef0d3fb24ef914453 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Fri, 19 Sep 2014 12:14:05 +0100 Subject: [PATCH] Bug 1068027 - nsBidiPresUtils::RepositionFrame should not mix logical and physical directions. r=smontagu --- layout/base/nsBidiPresUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/base/nsBidiPresUtils.cpp b/layout/base/nsBidiPresUtils.cpp index 1d83365039f..a7a8a7f3669 100644 --- a/layout/base/nsBidiPresUtils.cpp +++ b/layout/base/nsBidiPresUtils.cpp @@ -1402,7 +1402,7 @@ nsBidiPresUtils::RepositionFrame(nsIFrame* aFrame, } nscoord start = aStart; - nscoord frameWidth = aFrame->GetSize().width; + nscoord frameISize = aFrame->ISize(aLineWM); if (!IsBidiLeaf(aFrame)) { @@ -1436,7 +1436,7 @@ nsBidiPresUtils::RepositionFrame(nsIFrame* aFrame, iCoord, aContinuationStates, frameWM, - frameWidth); + frameISize); index++; frame = reverseOrder ? childList[childList.Length() - index - 1] : @@ -1448,7 +1448,7 @@ nsBidiPresUtils::RepositionFrame(nsIFrame* aFrame, } aStart += iCoord; } else { - aStart += frameWidth; + aStart += frameISize; } LogicalRect logicalRect(aLineWM, aFrame->GetRect(), aLineWidth);