mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00: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
9e2e27bfb6
commit
9ac0794124
@ -636,7 +636,8 @@ nsTextBoxFrame::CalculateTitleForWidth(nsPresContext* aPresContext,
|
||||
aRenderingContext);
|
||||
if (titleWidth <= aWidth) {
|
||||
mCroppedTitle = mTitle;
|
||||
if (HasRTLChars(mTitle)) {
|
||||
if (HasRTLChars(mTitle) ||
|
||||
StyleVisibility()->mDirection == NS_STYLE_DIRECTION_RTL) {
|
||||
mState |= NS_FRAME_IS_BIDI;
|
||||
}
|
||||
return titleWidth; // fits, done.
|
||||
|
Loading…
Reference in New Issue
Block a user