| Index: content/browser/accessibility/browser_accessibility_manager.cc
|
| diff --git a/content/browser/accessibility/browser_accessibility_manager.cc b/content/browser/accessibility/browser_accessibility_manager.cc
|
| index b3d3668035e6477cb81ac81b34f3abb576c2f3bc..1a7a340fd767a8778cc1ffa448e8457cebbc5219 100644
|
| --- a/content/browser/accessibility/browser_accessibility_manager.cc
|
| +++ b/content/browser/accessibility/browser_accessibility_manager.cc
|
| @@ -470,12 +470,7 @@ void BrowserAccessibilityManager::ActivateFindInPageResult(
|
| return;
|
|
|
| // If an ancestor of this node is a leaf node, fire the notification on that.
|
| - BrowserAccessibility* ancestor = node->GetParent();
|
| - while (ancestor && ancestor != GetRoot()) {
|
| - if (ancestor->PlatformIsLeaf())
|
| - node = ancestor;
|
| - ancestor = ancestor->GetParent();
|
| - }
|
| + node = node->GetClosestPlatformObject();
|
|
|
| // The "scrolled to anchor" notification is a great way to get a
|
| // screen reader to jump directly to a specific location in a document.
|
|
|