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

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

Issue 2957973003: Automatically fire AX events on Win based on tree changes (Closed)
Patch Set: Audit all events, manually test with JAWS and NVDA Created 3 years, 5 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 6f922037975f78bec21804704504f4d6478d2733..77f986a77fb73824537430bf15b0a89f938bf172 100644
--- a/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
+++ b/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
@@ -383,23 +383,19 @@ const AtomicString& AccessibleNode::GetPropertyOrARIAAttribute(
}
// static
-AccessibleNode* AccessibleNode::GetPropertyOrARIAAttribute(
+Element* AccessibleNode::GetPropertyOrARIAAttribute(
Element* element,
AOMRelationProperty property) {
if (!element)
return nullptr;
if (AccessibleNode* result = GetProperty(element, property))
- return result;
+ return result->element();
// Fall back on the equivalent ARIA attribute.
QualifiedName attribute = GetCorrespondingARIAAttribute(property);
AtomicString value = element->FastGetAttribute(attribute);
- Element* target = element->GetTreeScope().getElementById(value);
- if (!target)
- return nullptr;
-
- return target->accessibleNode();
+ return element->GetTreeScope().getElementById(value);
}
// static
« 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