diff options
Diffstat (limited to 'ui/gfx/render_text_mac.cc')
-rw-r--r-- | ui/gfx/render_text_mac.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/gfx/render_text_mac.cc b/ui/gfx/render_text_mac.cc index fcf0cf8..1b313f7 100644 --- a/ui/gfx/render_text_mac.cc +++ b/ui/gfx/render_text_mac.cc @@ -87,10 +87,6 @@ RenderTextMac::RenderTextMac() : common_baseline_(0), runs_valid_(false) { RenderTextMac::~RenderTextMac() { } -base::i18n::TextDirection RenderTextMac::GetTextDirection() { - return base::i18n::LEFT_TO_RIGHT; -} - Size RenderTextMac::GetStringSize() { EnsureLayout(); return string_size_; @@ -183,6 +179,9 @@ void RenderTextMac::EnsureLayout() { base::mac::ScopedCFTypeRef<CFMutableAttributedStringRef> attr_text_mutable( CFAttributedStringCreateMutableCopy(NULL, 0, attr_text)); + // TODO(asvitkine|msw): Respect GetTextDirection(), which may not match the + // natural text direction. See kCTTypesetterOptionForcedEmbeddingLevel, etc. + ApplyStyles(attr_text_mutable, ct_font); line_.reset(CTLineCreateWithAttributedString(attr_text_mutable)); |