Index: third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp b/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
index a08faf26470e4f12cb66941f19255c12e886f4be..43739e3bac62863722cea5cdbfa49ecbb9077c11 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
@@ -27,7 +27,6 @@ |
#include "SkMatrix44.h" |
#include "core/dom/AccessibleNode.h" |
-#include "core/html/HTMLSelectElement.h" |
#include "modules/accessibility/AXMenuListPopup.h" |
#include "modules/accessibility/AXObjectCacheImpl.h" |
@@ -64,26 +63,6 @@ Element* AXMenuListOption::ActionElement() const { |
return element_; |
} |
-AXObjectImpl* AXMenuListOption::ComputeParent() const { |
- Node* node = GetNode(); |
- if (!node) |
- return nullptr; |
- HTMLSelectElement* select = toHTMLOptionElement(node)->OwnerSelectElement(); |
- if (!select) |
- return nullptr; |
- AXObjectImpl* select_ax_object = AxObjectCache().GetOrCreate(select); |
- if (select_ax_object->HasChildren()) { |
- const auto& child_objects = select_ax_object->Children(); |
- DCHECK(!child_objects.IsEmpty()); |
- DCHECK_EQ(child_objects.size(), 1UL); |
- DCHECK(child_objects[0]->IsMenuListPopup()); |
- ToAXMenuListPopup(child_objects[0].Get())->UpdateChildrenIfNecessary(); |
- } else { |
- select_ax_object->UpdateChildrenIfNecessary(); |
- } |
- return parent_.Get(); |
-} |
- |
bool AXMenuListOption::IsEnabled() const { |
// isDisabledFormControl() returns true if the parent <select> element is |
// disabled, which we don't want. |