| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index a403176069c3b352a8a11cbf448a268666686e72..11923b03eca435783625b5f93fb89da829708fdb 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1187,6 +1187,24 @@ String Element::computedName() {
|
| return cache->get()->computedNameForNode(this);
|
| }
|
|
|
| +AccessibleNode* Element::existingAccessibleNode() const {
|
| + if (!RuntimeEnabledFeatures::accessibilityObjectModelEnabled())
|
| + return nullptr;
|
| +
|
| + if (!hasRareData())
|
| + return nullptr;
|
| +
|
| + return elementRareData()->accessibleNode();
|
| +}
|
| +
|
| +AccessibleNode* Element::accessibleNode() {
|
| + if (!RuntimeEnabledFeatures::accessibilityObjectModelEnabled())
|
| + return nullptr;
|
| +
|
| + ElementRareData& rareData = ensureElementRareData();
|
| + return rareData.ensureAccessibleNode(this);
|
| +}
|
| +
|
| const AtomicString& Element::getAttribute(const AtomicString& localName) const {
|
| if (!elementData())
|
| return nullAtom;
|
|
|