mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1068027 - nsBidiPresUtils::RepositionFrame should not mix logical and physical directions. r=smontagu
This commit is contained in:
parent
8daec4a609
commit
37cb84df41
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user