Bug 1068027 - nsBidiPresUtils::RepositionFrame should not mix logical and physical directions. r=smontagu

This commit is contained in:
Jonathan Kew 2014-09-19 12:14:05 +01:00
parent 8daec4a609
commit 37cb84df41

View File

@ -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);