| Index: Source/web/WebAXObject.cpp
|
| diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
|
| index 92be6de0e4d73a47af21c8f07de6fb52c2778158..f5460c3ed24a8e5ce962022210082948d7eafd8e 100644
|
| --- a/Source/web/WebAXObject.cpp
|
| +++ b/Source/web/WebAXObject.cpp
|
| @@ -76,15 +76,10 @@ static bool isLayoutClean(Document* document)
|
| #endif
|
|
|
| WebScopedAXContext::WebScopedAXContext(WebDocument& rootDocument)
|
| - : m_private(adoptRef(new ScopedAXObjectCache(*rootDocument.unwrap<Document>())))
|
| + : m_private(ScopedAXObjectCache::create(*rootDocument.unwrap<Document>()))
|
| {
|
| }
|
|
|
| -WebScopedAXContext::~WebScopedAXContext()
|
| -{
|
| - m_private.reset();
|
| -}
|
| -
|
| WebAXObject WebScopedAXContext::root() const
|
| {
|
| return WebAXObject(static_cast<AXObjectCacheImpl*>(m_private->get())->root());
|
|
|