commit | 1dfdf1b070b0bdeb839714ff9ceea303606b5806 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Fri Mar 01 14:15:10 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 01 14:15:10 2019 |
tree | e23ffb0480a37fb6d7d96978f1918d9562438c82 | |
parent | bb4219556039f934e4f1aef8b71d2d9b9b0ec2b4 [diff] |
Remove state variable shadowing in blink/paint In an effort to reduce or even ban variable shadowing, this renames a variable. I'm interested in prohibiting shadowing because I think it might prevent potential jumbo problems. The exact warning this this avoids is: third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:1762:40: error: declaration shadows a local variable [-Werror,-Wshadow] EffectPaintPropertyNode::State state; ^ third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:1711:38: note: previous declaration is here ScrollPaintPropertyNode::State state; ^ third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:1776:40: error: declaration shadows a local variable [-Werror,-Wshadow] EffectPaintPropertyNode::State state; ^ third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:1711:38: note: previous declaration is here ScrollPaintPropertyNode::State state; ^ Bug: 923510 Change-Id: Ia64158f91a8f07cd238e01b1e1e31b35a6b5ac06 Reviewed-on: https://chromium-review.googlesource.com/c/1496874 Commit-Queue: Daniel Bratell <bratell@opera.com> Commit-Queue: Fredrik Söderquist <fs@opera.com> Auto-Submit: Daniel Bratell <bratell@opera.com> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#636803}
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 .