commit | d2fcca79af2d772f727ea1c8aa32a63bb084c8e3 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Wed Feb 13 11:08:37 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 13 11:08:37 2019 |
tree | d96e9a7331ffed5d425333baad2b9caa24ad2c5b | |
parent | b4fa97af9d71e841309c2b2483f04c19c2c92199 [diff] |
Adding helper functions to create and check for Length variants Instead of Length(123.45, kFixed) -> Length::Fixed(123.45) Instead of Length(kAuto) -> Length::Auto() ... I have a plan to make kAuto and kFixed non-blink-globals (by making their enum an enum class) but that will make code using those constants more verbose so to reduce the effect, this patch greatly reduces the use of those constants by wrapping them in helper functions. I believe this also makes the code a little bit more readable but since it is different it will mean learning something new. The old way still works. Change-Id: I1e88be433dc5819e62832522ec90e48a8409ebc3 Reviewed-on: https://chromium-review.googlesource.com/c/1460919 Commit-Queue: Daniel Bratell <bratell@opera.com> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#631634}
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 .