commit | 784f852591a08f9bce6005cbb1df682cc5608af0 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Wed Jan 16 13:06:25 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 16 13:06:25 2019 |
tree | 05a4b5635d41451e95cda2258e6690a7087a01b7 | |
parent | 18cfd8ad350953fbea0642365cbe840646ac8133 [diff] |
Avoid copying Lengths (non-layout uses) Copying/assigning a Length is not just a trivial copy, so when possible, use a const Length& to avoid making a copy (saving some small bit of footprint and hopefully a few CPU cycles too). Change-Id: I8bcf5c6e6b99027110a20b1ef95d5f6607673ddc Reviewed-on: https://chromium-review.googlesource.com/c/1411919 Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#623209}
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 .