RenderTextHarfBuzz no longer ignores its specified text direction.
commit283b2b78f1251125d66b2e99020bc19038127bd3
authormgiuca <mgiuca@chromium.org>
Fri, 12 Jun 2015 01:39:46 +0000 (11 18:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Jun 2015 01:40:16 +0000 (12 01:40 +0000)
tree0a7610f3e4bfabdb1e7393bc142ed14352deac73
parent4601460b71004bbc068b7c8bc31535788830af8a
RenderTextHarfBuzz no longer ignores its specified text direction.

The method RenderText::SetDirectionalityMode is supposed to allow the
client to override the default directionality mode (getting the
directionality from the text). However, a bug in BiDiLineIterator means
that it is largely ignored (in the majority of cases, it will use the
directionality of the text regardless).

Fixed BiDiLineIterator to honour the supplied direction.

This should have almost no noticeable effect, as almost all text fields
use the default directionality mode anyway.

BUG=496023,495933

Review URL: https://codereview.chromium.org/1153603004

Cr-Commit-Position: refs/heads/master@{#334106}
base/i18n/bidi_line_iterator.cc
base/i18n/bidi_line_iterator.h
ui/gfx/render_text_harfbuzz.cc
ui/gfx/render_text_unittest.cc