| 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 307d73fd1cb62ed5fcc906778643c6f6f9e1b6b0..d7738a8fc166ce899b9d211589e3ed4f9cfde153 100644
|
| --- a/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/AccessibleNode.cpp
|
| @@ -55,8 +55,32 @@ void AccessibleNode::setRole(const AtomicString& role) {
|
| cache->handleAttributeChanged(HTMLNames::roleAttr, m_element);
|
| }
|
|
|
| -AtomicString AccessibleNode::label() const {
|
| - return getProperty(m_element, AOMStringProperty::kLabel);
|
| +AtomicString AccessibleNode::roleDescription() const {
|
| + return getProperty(m_element, AOMStringProperty::kRoleDescription);
|
| +}
|
| +
|
| +void AccessibleNode::setRoleDescription(const AtomicString& roleDescription) {
|
| + setStringProperty(AOMStringProperty::kRoleDescription, roleDescription);
|
| +
|
| + if (AXObjectCache* cache = m_element->document().axObjectCache()) {
|
| + cache->handleAttributeChanged(HTMLNames::aria_roledescriptionAttr,
|
| + m_element);
|
| + }
|
| +}
|
| +
|
| +AtomicString AccessibleNode::sort() const {
|
| + return getProperty(m_element, AOMStringProperty::kSort);
|
| +}
|
| +
|
| +void AccessibleNode::setSort(const AtomicString& sort) {
|
| + setStringProperty(AOMStringProperty::kSort, sort);
|
| +
|
| + if (AXObjectCache* cache = m_element->document().axObjectCache())
|
| + cache->handleAttributeChanged(HTMLNames::aria_sortAttr, m_element);
|
| +}
|
| +
|
| +AtomicString AccessibleNode::valueText() const {
|
| + return getProperty(m_element, AOMStringProperty::kValueText);
|
| }
|
|
|
| void AccessibleNode::setLabel(const AtomicString& label) {
|
|
|