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

Unified Diff: Source/web/WebAXObject.cpp

Issue 679623002: Check whether aria-expanded attribute is defined (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add COMPILE ASSERT for new enum type Created 6 years, 2 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/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 5b55f1105b8e8863736dcd2ab0efe478a309cb9d..05113ed0f64bc645bc98a823d675a940f4c2a017 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -274,12 +274,12 @@ bool WebAXObject::isEnabled() const
return m_private->isEnabled();
}
-bool WebAXObject::isExpanded() const
+WebAXExpanded WebAXObject::isExpanded() const
{
if (isDetached())
- return 0;
+ return WebAXExpandedUndefined;
- return m_private->isExpanded();
+ return static_cast<WebAXExpanded>(m_private->isExpanded());
}
bool WebAXObject::isFocused() const
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698