commit | 0feeacb8dd240f98d919f69d1b977825436dadde | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Mon Mar 04 15:40:47 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 04 15:40:47 2019 |
tree | ab385fe2c4ce14773d38bea9d31a31dde5208c42 | |
parent | c5604de950ff01de7a8078cefba14cc0a94a63ca [diff] |
Remove variable shadowing in blink/input In an effort to reduce or even ban variable shadowing, this renames some variables to avoid such shadowing. I'm interested in prohibiting shadowing because I think it might prevent potential jumbo problems. The exact warning this avoids is: third_party/blink/renderer/core/input/event_handler.cc:757:20: error: declaration shadows a local variable [-Werror,-Wshadow] HitTestRequest request(HitTestRequest::kReadOnly | HitTestRequest::kActive); ^ third_party/blink/renderer/core/input/event_handler.cc:636:18: note: previous declaration is here HitTestRequest request(HitTestRequest::kActive); ^ third_party/blink/renderer/core/input/event_handler.cc:772:22: error: declaration shadows a local variable [-Werror,-Wshadow] HitTestRequest request(HitTestRequest::kReadOnly | ^ third_party/blink/renderer/core/input/event_handler.cc:636:18: note: previous declaration is here HitTestRequest request(HitTestRequest::kActive); ^ third_party/blink/renderer/core/input/scroll_manager.cc:254:11: error: declaration shadows a local variable [-Werror,-Wshadow] Node* node = DOMNodeIds::NodeForId(scroll_chain.back()); ^ third_party/blink/renderer/core/input/scroll_manager.cc:228:9: note: previous declaration is here Node* node = start_node; ^ Bug: 923510 Change-Id: I2bfd6993232654574a11dbfe7ded2b27555d931a Reviewed-on: https://chromium-review.googlesource.com/c/1494877 Auto-Submit: Daniel Bratell <bratell@opera.com> Reviewed-by: David Bokan <bokan@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#637296}
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 .