commit | 37c01ccd2933550ed0da5bf82da45488feb395c8 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Tue Mar 05 18:57:48 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 05 18:57:48 2019 |
tree | ef648236f276760fbebafd33c8760ee0a3653f5e | |
parent | 5845e3041f028f5ca90e79d5e730a11fefbcd18c [diff] |
[LayoutNG] Make nowrap in NGLineBreaker simpler This patch changes NGLineBreaker not to call ShapingLineBreaker when nowrap or pre. The start and end of nowrap is not needed to reshape, and it improves nowrap blink_perf tests by 2-3%. loading.desktop seems to improve by 1-3% (it's a bit noisy.) In doing so, this patch adds a few DCHECK, which discovered a few issues. This patch also fixes them. 1. Fixes where lines may wrap after leading spaces in nowrap. 2. Fixes where |Rewind()| fails to update the |current_style_| and its derived members such as |auto_wrap_|. Bug: 636993 Change-Id: I19bdf1af1287aaebaa30ef00fe4b5d98189650ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1501233 Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#637754}
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 .