| 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
|
|
|