summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/window.cc')
-rw-r--r--ui/aura/window.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 2a1ef3e..94a6532 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -607,8 +607,9 @@ Window* Window::GetWindowForPoint(const gfx::Point& local_point,
if (!return_tightest && delegate_)
return this;
- for (Windows::const_reverse_iterator it = children_.rbegin();
- it != children_.rend(); ++it) {
+ for (Windows::const_reverse_iterator it = children_.rbegin(),
+ rend = children_.rend();
+ it != rend; ++it) {
Window* child = *it;
if (!child->IsVisible() || (for_event_handling && child->ignore_events_))
continue;