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

Unified Diff: third_party/WebKit/Source/core/dom/AccessibleNode.cpp

Issue 2864493005: Accessibility Object Model: remove reflection (Closed)
Patch Set: Rebase Created 3 years, 7 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
Index: third_party/WebKit/Source/core/dom/AccessibleNode.cpp
diff --git a/third_party/WebKit/Source/core/dom/AccessibleNode.cpp b/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
index 8e5437aaf2d5c3c11e96f8e183cf8a849af7bbe3..a8dd6c111a06a752f8f053130bee947a37b7df45 100644
--- a/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
+++ b/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
@@ -32,6 +32,20 @@ const AtomicString& AccessibleNode::GetProperty(Element* element,
}
}
+ return g_null_atom;
+}
+
+// static
+const AtomicString& AccessibleNode::GetPropertyOrARIAAttribute(
+ Element* element,
+ AOMStringProperty property) {
+ if (!element)
+ return g_null_atom;
+
+ const AtomicString& result = GetProperty(element, property);
+ if (!result.IsNull())
+ return result;
+
// Fall back on the equivalent ARIA attribute.
switch (property) {
case AOMStringProperty::kAutocomplete:
« no previous file with comments | « third_party/WebKit/Source/core/dom/AccessibleNode.h ('k') | third_party/WebKit/Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698