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

Unified Diff: Source/modules/accessibility/AXMenuListPopup.cpp

Issue 1032183003: AXObjectCacheImpl::postNotification shouldn't post on an ancestor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/modules/accessibility/AXMenuList.cpp ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXMenuListPopup.cpp
diff --git a/Source/modules/accessibility/AXMenuListPopup.cpp b/Source/modules/accessibility/AXMenuListPopup.cpp
index 88021c39f68164e9b5eb8287a439a5385f514af6..a5580972d46b6e9fb53c74dffbece5e4a61ecb6e 100644
--- a/Source/modules/accessibility/AXMenuListPopup.cpp
+++ b/Source/modules/accessibility/AXMenuListPopup.cpp
@@ -145,12 +145,12 @@ void AXMenuListPopup::didUpdateActiveOption(int optionIndex)
AXObjectCacheImpl* cache = axObjectCache();
if (m_activeIndex >= 0 && m_activeIndex < static_cast<int>(m_children.size())) {
RefPtr<AXObject> previousChild = m_children[m_activeIndex].get();
- cache->postNotification(previousChild.get(), document(), AXObjectCacheImpl::AXMenuListItemUnselected, true);
+ cache->postNotification(previousChild.get(), AXObjectCacheImpl::AXMenuListItemUnselected, true);
}
RefPtr<AXObject> child = m_children[optionIndex].get();
- cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXFocusedUIElementChanged, true);
- cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXMenuListItemSelected, true);
+ cache->postNotification(child.get(), AXObjectCacheImpl::AXFocusedUIElementChanged, true);
+ cache->postNotification(child.get(), AXObjectCacheImpl::AXMenuListItemSelected, true);
m_activeIndex = optionIndex;
}
« no previous file with comments | « Source/modules/accessibility/AXMenuList.cpp ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698