| Index: ui/views/view_targeter_delegate.cc
|
| diff --git a/ui/views/view_targeter_delegate.cc b/ui/views/view_targeter_delegate.cc
|
| index b20842f120074e04a98aa38af683193cd205e837..b33bbc65391f3c5a1cbc888b05e17ab25c63dfa3 100644
|
| --- a/ui/views/view_targeter_delegate.cc
|
| +++ b/ui/views/view_targeter_delegate.cc
|
| @@ -42,9 +42,10 @@ View* ViewTargeterDelegate::TargetForRect(View* root, const gfx::Rect& rect) {
|
| // from this function call if point-based targeting were used.
|
| View* point_view = NULL;
|
|
|
| - for (int i = root->child_count() - 1; i >= 0; --i) {
|
| - View* child = root->child_at(i);
|
| -
|
| + View::Views children = root->GetChildrenOrderedByVisualOrder();
|
| + DCHECK_EQ(root->child_count(), static_cast<int>(children.size()));
|
| + for (int i = children.size() - 1; i >= 0; --i) {
|
| + View* child = children[i];
|
| if (!child->CanProcessEventsWithinSubtree())
|
| continue;
|
|
|
|
|