commit | 89209304eab790c03559163690c518c4cd9760eb | [log] [tgz] |
---|---|---|
author | Manuel Rego Casasnovas <rego@igalia.com> | Tue Nov 13 22:51:57 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 13 22:51:57 2018 |
tree | ed30154f2cc13fab151d93fdcbccfbce5e2ccad3 | |
parent | 73063d16b0fb9605e224e0d35f516e3b7d741d1e [diff] |
[css-contain] Apply optimization in SetText if text doesn't wrap This is an extra case in which we can apply the SetText optimization introduced in r578233. If the text is longer than the container, but we know it's not going to wrap, then we can apply the optimization anyway and avoid the layout as we know it's not going to be split in multiple lines. Thanks to this patch the optimization will be applied in more cases. The patch also removes the TODO about trying to avoid measuring the text length. That was tried in https://chromium-review.googlesource.com/1275848 but discarded as it is not possible to avoid measuring the text if we want to store proper values for widths. Bug=805785 TEST=fast/css/containment/change-text-node-data-nowrap.html Change-Id: Ifa708d2a40b95254420750672941de18f5a6f3c7 Reviewed-on: https://chromium-review.googlesource.com/c/1333750 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#607786}
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 .