commit | 0ae550c11d1b4cb0e27b0338add6964926cbe6e2 | [log] [tgz] |
---|---|---|
author | Miguel Casas <mcasas@chromium.org> | Thu Jul 26 00:08:29 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 26 00:08:29 2018 |
tree | ef9ec45308b6bae9b2fcf0d42e9ea6d55203cf57 | |
parent | d544d1bebcb21e0f0a7bceaf36776d1cace5c33c [diff] |
canvas: homogeneise style and simplify methods logic. This CL homogeneises the if-else bracketing style in said file: these blocks get {} if either the condition or the body in either branch is > 1 line. Otherwise, no brackets. Simplified the logic of a few service methods too, and extracted the calculation of CanvasResourceProvider::ResourceUsage |usage| in GetOrCreateCanvasResourceProvider() so that it looks similar\ on both sides of the branch. No new functionality intended. Bug: 839970 Change-Id: I6e275a330f145aea861ae9344aa172ffc5840a27 Reviewed-on: https://chromium-review.googlesource.com/1150437 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by: Justin Novosad <junov@chromium.org> Cr-Commit-Position: refs/heads/master@{#578135}
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 .