| 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 8043437642a66ddd4e39c358b0e55fdb7fd1a707..38409cb11e99af9aa8617025a98f2dd62983fac2 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1188,6 +1188,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;
|
|
|