Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index ccea8a00b6e6375d0d6b905353788fd22159f835..1afb2a5ed7b8d777c8510b28f03e7c45c17baa02 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -606,8 +606,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; |