Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 1034493005: Fire AX notifications on list box options. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@menu_list_more
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index f820c5413f8ab429e581f0afcf92d01e2c143671..3b826df79ec5a3f23343764ad92fab5702e61b41 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -730,7 +730,7 @@ void HTMLSelectElement::scrollToSelection()
return;
scrollToIndex(activeSelectionEndListIndex());
if (AXObjectCache* cache = document().existingAXObjectCache())
- cache->selectedChildrenChanged(this);
+ cache->listboxActiveIndexChanged(this);
}
void HTMLSelectElement::setOptionsChangedOnRenderer()
@@ -970,9 +970,6 @@ void HTMLSelectElement::selectOption(int optionIndex, SelectOptionFlags flags)
if (LayoutObject* renderer = this->layoutObject()) {
if (usesMenuList()) {
toLayoutMenuList(renderer)->didSetSelectedIndex(listIndex);
- } else if (renderer->isListBox()) {
- if (AXObjectCache* cache = document().existingAXObjectCache())
- cache->selectedChildrenChanged(this);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698