Index: Source/web/WebAXObject.cpp |
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp |
index 5b55f1105b8e8863736dcd2ab0efe478a309cb9d..48e2a3a79907aa3cc4d67d8c90b9b0524ee95f28 100644 |
--- a/Source/web/WebAXObject.cpp |
+++ b/Source/web/WebAXObject.cpp |
@@ -274,14 +274,6 @@ bool WebAXObject::isEnabled() const |
return m_private->isEnabled(); |
} |
-bool WebAXObject::isExpanded() const |
-{ |
- if (isDetached()) |
- return 0; |
- |
- return m_private->isExpanded(); |
-} |
- |
bool WebAXObject::isFocused() const |
{ |
if (isDetached()) |
@@ -466,6 +458,14 @@ bool WebAXObject::ariaHasPopup() const |
return m_private->ariaHasPopup(); |
} |
+WebAXExpanded WebAXObject::ariaExpanded() const |
+{ |
+ if (isDetached()) |
+ return WebAXExpandedUndefined; |
+ |
+ return static_cast<WebAXExpanded>(m_private->ariaExpanded()); |
+} |
+ |
bool WebAXObject::ariaFlowTo(WebVector<WebAXObject>& flowToElements) const |
{ |
if (isDetached()) |