Commit 9ac96f62 authored by tfarina's avatar tfarina Committed by Commit bot

accessibility: Simpler code using ChildAtIndex() method.

ChildAtIndex() is method of AxNode that does the same thing of
children()[index], but reads better.

BUG=None
TEST=content_unittests
R=dmazzoni@chromium.org

Review URL: https://codereview.chromium.org/919343006

Cr-Commit-Position: refs/heads/master@{#316392}
parent e65c2ff2
......@@ -130,7 +130,7 @@ BrowserAccessibility* BrowserAccessibility::InternalGetChild(
uint32 child_index) const {
if (!node_ || !manager_)
return NULL;
return manager_->GetFromAXNode(node_->children()[child_index]);
return manager_->GetFromAXNode(node_->ChildAtIndex(child_index));
}
BrowserAccessibility* BrowserAccessibility::GetParent() const {
......
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