commit | b227cc09b41fed93dcb32fe1e2feff3341cbe1aa | [log] [tgz] |
---|---|---|
author | Oscar Johansson <oscarj@opera.com> | Wed Jun 27 08:10:36 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jun 27 08:10:36 2018 |
tree | fbfca913f48653f055f1e134c79ce940fce67437 | |
parent | e40723ac2ee2ac0e230a2ecd58327d591db9dfee [diff] |
Replace magic constant with kFixedSize When calling certain functions in GridLayout a resize parameter is passed, defining how much the layout should resize. Most often it is passed as 0 or 1. Sometimes 100 (which is assumed to be the same as 1) and sometimes 0.5. This commit defines the variable kFixedSize = 0.f in grid_layout.h and remove every local defintion of the variables. The magic constant are replaced by this variable. The replacements are: 0, 0.f and 0.0f becomes kFixedSize (0.f) This commit affects chrome/browser/ui. Bug: 854186 Change-Id: I287b1b38350a2dce2bd6e02cc871e82e0a5d89db Reviewed-on: https://chromium-review.googlesource.com/1106159 Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by: Bret Sepulveda <bsep@chromium.org> Commit-Queue: Oscar Johansson <oscarj@opera.com> Cr-Commit-Position: refs/heads/master@{#570693}
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 .