Commit 39a0f0c6 authored by tfarina@chromium.org's avatar tfarina@chromium.org

views: Fix r88539 by renaming the variable from child_count to just count.

BUG=None
TEST=None

TBR=sky@chromium.org

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88540 0039d316-1c4b-4281-b951-d872f2087c98
parent eee1a3d8
...@@ -1764,13 +1764,13 @@ void View::UnregisterAccelerators(bool leave_data_intact) { ...@@ -1764,13 +1764,13 @@ void View::UnregisterAccelerators(bool leave_data_intact) {
// Focus ----------------------------------------------------------------------- // Focus -----------------------------------------------------------------------
void View::InitFocusSiblings(View* v, int index) { void View::InitFocusSiblings(View* v, int index) {
int child_count = child_count(); int count = child_count();
if (child_count == 0) { if (count == 0) {
v->next_focusable_view_ = NULL; v->next_focusable_view_ = NULL;
v->previous_focusable_view_ = NULL; v->previous_focusable_view_ = NULL;
} else { } else {
if (index == child_count) { if (index == count) {
// We are inserting at the end, but the end of the child list may not be // We are inserting at the end, but the end of the child list may not be
// the last focusable element. Let's try to find an element with no next // the last focusable element. Let's try to find an element with no next
// focusable element to link to. // focusable element to link to.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment