Bug 1155359 - Set NS_FRAME_IS_BIDI on nsTextBoxFrame if text direction is set to RTL r=roc

This commit is contained in:
George Wright 2015-04-15 16:00:29 -04:00
parent 9e2e27bfb6
commit 9ac0794124

View File

@ -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.