Chromium Code Reviews| Index: base/i18n/rtl.cc |
| diff --git a/base/i18n/rtl.cc b/base/i18n/rtl.cc |
| index 392cb13bdb78c112be17c8ee2c17ee69faf2d0fb..2c4464444647bae58c09d9a9a618c0c233cf622a 100644 |
| --- a/base/i18n/rtl.cc |
| +++ b/base/i18n/rtl.cc |
| @@ -47,14 +47,13 @@ base::i18n::TextDirection GetCharacterDirection(UChar32 character) { |
| // Now that we have the character, we use ICU in order to query for the |
| // appropriate Unicode BiDi character type. |
| int32_t property = u_getIntPropertyValue(character, UCHAR_BIDI_CLASS); |
| - if ((property == U_RIGHT_TO_LEFT) || |
| - (property == U_RIGHT_TO_LEFT_ARABIC) || |
| + if ((property == U_RIGHT_TO_LEFT) || (property == U_RIGHT_TO_LEFT_ARABIC) || |
| (property == U_RIGHT_TO_LEFT_EMBEDDING) || |
| - (property == U_RIGHT_TO_LEFT_OVERRIDE)) { |
| + (property == U_RIGHT_TO_LEFT_override)) { |
|
Mostyn Bramley-Moore
2014/09/30 22:43:58
incorrect match here
|
| return base::i18n::RIGHT_TO_LEFT; |
| } else if ((property == U_LEFT_TO_RIGHT) || |
| (property == U_LEFT_TO_RIGHT_EMBEDDING) || |
| - (property == U_LEFT_TO_RIGHT_OVERRIDE)) { |
| + (property == U_LEFT_TO_RIGHT_override)) { |
|
Mostyn Bramley-Moore
2014/09/30 22:43:58
incorrect match here
|
| return base::i18n::LEFT_TO_RIGHT; |
| } |
| return base::i18n::UNKNOWN_DIRECTION; |