[LayoutNG] Fix 'word-wrap' property when line breaker is rewinding
This patch moves the logic for the 'word-wrap' property from HandleText() to its lower function, BreakText(). Since HandleOverflow() directly calls BreakText(), this change fixes the logic to properly kick in not only when scanning forward but also when rewinding. fast/text/basic/015.html is rebaselined because its expected image for the current line breaker breaks at the incorrect position (the 2nd block breaks after 'i', not after 'u'.) Bug: 636993 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I1f3c809411417329420b6af8269b1cceb8796b54 Reviewed-on: https://chromium-review.googlesource.com/672167Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#502853}
Showing
32.7 KB