| Index: Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| diff --git a/Source/modules/accessibility/AXObjectCacheImpl.cpp b/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| index ab190e195d09f9c58ed60f5fc7aa43aeaeab8063..3b1b8ada6de6cda3671ed44f074f4c4f0c624b1f 100644
|
| --- a/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| +++ b/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| @@ -1074,6 +1074,23 @@ void AXObjectCacheImpl::handleScrollPositionChanged(RenderObject* renderObject)
|
| postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged);
|
| }
|
|
|
| +const AtomicString& AXObjectCacheImpl::computedRoleForNode(Node* node)
|
| +{
|
| + AXObject* obj = getOrCreate(node);
|
| + if (!obj)
|
| + return AXObject::roleName(UnknownRole);
|
| + return AXObject::roleName(obj->roleValue());
|
| +}
|
| +
|
| +String AXObjectCacheImpl::computedNameForNode(Node* node)
|
| +{
|
| + AXObject* obj = getOrCreate(node);
|
| + if (!obj)
|
| + return "";
|
| +
|
| + return obj->title();
|
| +}
|
| +
|
| void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect& rect)
|
| {
|
| AXObject* obj = getOrCreate(element);
|
|
|