commit | f5a38953cb0817f29cae53c9ae16563e71da9a0b | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Thu Dec 20 09:15:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 20 09:15:47 2018 |
tree | e545d44ee442ecd5d9934611d26d11b8088300ec | |
parent | ba9683a99ddbad3ca7cb61662b7193b5c07e052a [diff] |
[LayoutNG] Add NGLineInfo::HasTrailingSpaces() As a follow up on review comments in r616617 (CL:1374331), where computing the width of preserved trailing spaces became a little more expensive, and since it's not needed in most common cases that we wanted to add a flag to skip the computation when it's not needed. In most cases, NGLineBreaker knows the answer, as it breaks lines, or removes trailing collapsible spaces. This patch tracks it as a state, and set the result to NGLineInfo. Bug: 913995 Change-Id: I1eb570ea2d38bbc0597b6e03fb6dffe0d9de3973 Reviewed-on: https://chromium-review.googlesource.com/c/1382667 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#618146}
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 .