| Index: Source/core/accessibility/AccessibilityMenuListPopup.cpp
|
| diff --git a/Source/core/accessibility/AccessibilityMenuListPopup.cpp b/Source/core/accessibility/AccessibilityMenuListPopup.cpp
|
| index 53fe8fdbcc1c63a5699f6ade9be0a3aa971f0f05..66722fc889b7cd3174556102bd172d57db5414f1 100644
|
| --- a/Source/core/accessibility/AccessibilityMenuListPopup.cpp
|
| +++ b/Source/core/accessibility/AccessibilityMenuListPopup.cpp
|
| @@ -66,7 +66,7 @@ bool AccessibilityMenuListPopup::computeAccessibilityIsIgnored() const
|
|
|
| AccessibilityMenuListOption* AccessibilityMenuListPopup::menuListOptionAccessibilityObject(HTMLElement* element) const
|
| {
|
| - if (!element || !element->hasTagName(optionTag) || !element->attached())
|
| + if (!element || !element->hasTagName(optionTag) || !element->confusingAndOftenMisusedAttached())
|
| return 0;
|
|
|
| AccessibilityObject* object = document()->axObjectCache()->getOrCreate(MenuListOptionRole);
|
| @@ -114,7 +114,7 @@ void AccessibilityMenuListPopup::childrenChanged()
|
| AXObjectCache* cache = axObjectCache();
|
| for (size_t i = m_children.size(); i > 0 ; --i) {
|
| AccessibilityObject* child = m_children[i - 1].get();
|
| - if (child->actionElement() && !child->actionElement()->attached()) {
|
| + if (child->actionElement() && !child->actionElement()->confusingAndOftenMisusedAttached()) {
|
| child->detachFromParent();
|
| cache->remove(child->axObjectID());
|
| }
|
|
|