Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 3163: Adjust the mid-word-break heuristic limit to 4em for Emoj…
…i ZWJ sequence Mid-word-break algorithm kicks in when CSS properties such as 'word-wrap: break-word' is used. Logically speaking, we should layout as normal, and break words if overflow occurs. However, Blink has 2em heuristic limit because of the performance problem in certain cases. This means Blink measures characters that go beyond the right edge only up to 2em before it starts mid-word-break. See the previous CL[1] for more details. This patch adjusts it to 4em. The longest common ligature is Emoji ZWJ sequence, and its v5.0[2] can ligate 4 Emoji into 1 at maximum. To handle this, 3em overflow is needed, and 1em for a rainy day fund. [1] r403830, https://codereview.chromium.org/2077313002 [2] http://unicode.org/emoji/charts/emoji-zwj-sequences.html [email protected] (cherry picked from commit 14ec221) Bug: 746222 Change-Id: Ic58b58716502f4ae9a06c1e91d2f5de944bc7978 Reviewed-on: https://chromium-review.googlesource.com/581249 Reviewed-by: Dominik Röttsches <[email protected]> Commit-Queue: Koji Ishii <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#488813} Reviewed-on: https://chromium-review.googlesource.com/587705 Reviewed-by: Koji Ishii <[email protected]> Cr-Commit-Position: refs/branch-heads/3163@{#74} Cr-Branched-From: ff259ba-refs/heads/master@{#488528}
- Loading branch information