| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 0e35e59529d222df0b3d2807b96d5c8a1bb67f29..da8b6afb9b88f600a65b4554c3ca33a3bf3566e2 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2204,6 +2204,8 @@ void Document::clearAXObjectCache()
|
| ASSERT(&axObjectCacheOwner() == this);
|
| // Clear the cache member variable before calling delete because attempts
|
| // are made to access it during destruction.
|
| + if (m_axObjectCache)
|
| + m_axObjectCache->dispose();
|
| m_axObjectCache.clear();
|
| }
|
|
|
| @@ -5549,12 +5551,6 @@ void Document::platformColorsChanged()
|
| styleEngine().platformColorsChanged();
|
| }
|
|
|
| -void Document::clearWeakMembers(Visitor* visitor)
|
| -{
|
| - if (m_axObjectCache)
|
| - m_axObjectCache->clearWeakMembers(visitor);
|
| -}
|
| -
|
| v8::Local<v8::Object> Document::wrap(v8::Isolate* isolate, v8::Local<v8::Object> creationContext)
|
| {
|
| // It's possible that no one except for the new wrapper owns this object at
|
| @@ -5633,6 +5629,7 @@ DEFINE_TRACE(Document)
|
| visitor->trace(m_activeHoverElement);
|
| visitor->trace(m_documentElement);
|
| visitor->trace(m_titleElement);
|
| + visitor->trace(m_axObjectCache);
|
| visitor->trace(m_markers);
|
| visitor->trace(m_cssTarget);
|
| visitor->trace(m_currentScriptStack);
|
| @@ -5672,7 +5669,6 @@ DEFINE_TRACE(Document)
|
| visitor->trace(m_timeline);
|
| visitor->trace(m_compositorPendingAnimations);
|
| visitor->trace(m_contextDocument);
|
| - visitor->template registerWeakMembers<Document, &Document::clearWeakMembers>(this);
|
| WillBeHeapSupplementable<Document>::trace(visitor);
|
| #endif
|
| TreeScope::trace(visitor);
|
|
|