| Index: Source/modules/accessibility/InspectorAccessibilityAgent.cpp
|
| diff --git a/Source/modules/accessibility/InspectorAccessibilityAgent.cpp b/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
|
| index b609a876e20047000a92b2b8d6bf488a17eeb4d8..68b5a477dc35880fc69d6c55d048af8ce316f406 100644
|
| --- a/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
|
| +++ b/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
|
| @@ -356,7 +356,7 @@ void InspectorAccessibilityAgent::getAXNode(ErrorString* errorString, int nodeId
|
| return;
|
|
|
| Document& document = node->document();
|
| - RefPtr<ScopedAXObjectCache> cache(adoptRef(new ScopedAXObjectCache(document)));
|
| + OwnPtr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document);
|
| AXObjectCacheImpl* cacheImpl = toAXObjectCacheImpl(cache->get());
|
| AXObject* axObject = cacheImpl->getOrCreate(node);
|
| if (!axObject || axObject->accessibilityIsIgnored()) {
|
|
|