commit | 30b76d5777ddf68664451d911c2f956ca6d7cb70 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Aug 10 04:51:36 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Aug 10 04:51:36 2018 |
tree | eb1e1eb90daf789b45ebc64b6499fedb9a2799f1 | |
parent | 79b181aeb0a54d78f7ef2faadb3cb38720c1eec2 [diff] |
[LayoutNG] Stop giving the text before the line start to LineBreakIterator This patch changes NGLineBreaker not to give the text before the start of the line to ICU TextBreakIterator. It looks like ICU computes all the text from the beginning of the given text. Giving the block text content makes ICU to perform much slower, especially when LayoutNG re-creates break iterators on each line. This patch improves ArabicLineLayout.html by more than double. Also it is expected to improve all 16-bit cases. For break-anywhere, this patch relies on r581771 (CL:1165276) that adds StringView to NonSharedCharacterBreakIterator. Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I32f6d214e0b64a728ec4d91c1cd9e8a1870745ba Reviewed-on: https://chromium-review.googlesource.com/1168279 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#582060}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .