Split script runs at 'COMMON' blocks except for "white space" character. RTHB merges...
commit149bee40c5cc0bd72cee9a5550b0d178a449e03e
authorxdai <xdai@chromium.org>
Wed, 10 Jun 2015 23:36:15 +0000 (10 16:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Jun 2015 23:37:52 +0000 (10 23:37 +0000)
tree256fc467b861db9fe595e008a8bb27ac81816a7c
parentc0c47715c5dc2ee9acbe024df2d2d8f847c695bd
Split script runs at 'COMMON' blocks except for "white space" character. RTHB merges text runs
if they're connected by 'COMMON' blocks (like symbols and numbers), which might cause the "tofu" issue.

Also Rewrite the line breaker algorithm based on words iteration approach.

However, the root reason for this issue is that partial (sub text-runs) font fallback
algorithm, which will be overhauled in crbug.com/396415.

BUG=473946,448909
TEST=Manually check the website http://th.wikipedia.org/wiki/เยอรมันวิงส์_เที่ยวบินที่_9525 on device Pixel and Peach Pit.

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

Cr-Commit-Position: refs/heads/master@{#333845}
ui/gfx/render_text.h
ui/gfx/render_text_harfbuzz.cc
ui/gfx/render_text_harfbuzz.h
ui/gfx/render_text_unittest.cc
ui/gfx/text_elider.cc
ui/gfx/text_elider.h
ui/gfx/text_utils.cc
ui/gfx/text_utils.h