commit | 31da4fe3ccb0bf3848c54f4b6523ead2b93b9222 | [log] [tgz] |
---|---|---|
author | Ian Kilpatrick <ikilpatrick@chromium.org> | Fri Jul 20 04:26:35 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 20 04:26:35 2018 |
tree | f121ee4bcf8e3706519c78711ba19fcdf550d1a2 | |
parent | 98d34d3f790dbdb27c9570ca0a5663b3969f5132 [diff] |
[LayoutNG] Remove NGConstraintSpace allocation when computing float inline-size. This shouldn't have any behaviour change. Instead of using the ComputeInlineSizeForFragment call directly, we optimistically perform layout on the float to determine this size. This saves an allocation of an NGConstraintSpace (and simplifies the code dramatically), which results in a 25% perf increase in some float benchmarks (see previous pinpoint result). Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I111e62a4c16c206473085ebd309719f017196959 Bug: 635619 Reviewed-on: https://chromium-review.googlesource.com/1143882 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#576778}
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 .