Index: third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc b/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc |
index bd5a0847195a948f12ed77a918080725acba5d63..178cd2929a26b8892cfb11217c1c90926afc1444 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc |
@@ -19,11 +19,13 @@ bool NGBidiParagraph::SetParagraph(const String& text, |
DCHECK(!ubidi_); |
ubidi_ = ubidi_open(); |
ICUError error; |
- ubidi_setPara(ubidi_, text.characters16(), text.length(), |
- block_style->unicodeBidi() == Plaintext |
- ? UBIDI_DEFAULT_LTR |
- : (block_style->direction() == RTL ? UBIDI_RTL : UBIDI_LTR), |
- nullptr, &error); |
+ ubidi_setPara( |
+ ubidi_, text.characters16(), text.length(), |
+ block_style->unicodeBidi() == Plaintext |
+ ? UBIDI_DEFAULT_LTR |
+ : (block_style->direction() == TextDirection::Rtl ? UBIDI_RTL |
+ : UBIDI_LTR), |
+ nullptr, &error); |
if (U_FAILURE(error)) { |
NOTREACHED(); |
ubidi_close(ubidi_); |