mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155359 - Set NS_FRAME_IS_BIDI on nsTextBoxFrame if text direction is set to RTL r=roc
This commit is contained in:
parent
f8aa15f24d
commit
30ff6880b6
@ -636,7 +636,8 @@ nsTextBoxFrame::CalculateTitleForWidth(nsPresContext* aPresContext,
|
|||||||
aRenderingContext);
|
aRenderingContext);
|
||||||
if (titleWidth <= aWidth) {
|
if (titleWidth <= aWidth) {
|
||||||
mCroppedTitle = mTitle;
|
mCroppedTitle = mTitle;
|
||||||
if (HasRTLChars(mTitle)) {
|
if (HasRTLChars(mTitle) ||
|
||||||
|
StyleVisibility()->mDirection == NS_STYLE_DIRECTION_RTL) {
|
||||||
mState |= NS_FRAME_IS_BIDI;
|
mState |= NS_FRAME_IS_BIDI;
|
||||||
}
|
}
|
||||||
return titleWidth; // fits, done.
|
return titleWidth; // fits, done.
|
||||||
|
Loading…
Reference in New Issue
Block a user