Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1837)

Unified Diff: Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 1081673003: Oilpan: Prepare to move AXObjectCache to the heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXObjectCacheImpl.cpp
diff --git a/Source/modules/accessibility/AXObjectCacheImpl.cpp b/Source/modules/accessibility/AXObjectCacheImpl.cpp
index 8f81924cd4f19c9feb9dadf1e4aaa64d6e0b3383..55e1ce3b03e346fb840a6e9ce62d0710534d7741 100644
--- a/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -85,9 +85,9 @@ namespace blink {
using namespace HTMLNames;
// static
-PassOwnPtr<AXObjectCache> AXObjectCacheImpl::create(Document& document)
+PassOwnPtrWillBeRawPtr<AXObjectCache> AXObjectCacheImpl::create(Document& document)
{
- return adoptPtr(new AXObjectCacheImpl(document));
+ return adoptPtrWillBeNoop(new AXObjectCacheImpl(document));
}
AXObjectCacheImpl::AXObjectCacheImpl(Document& document)
@@ -99,6 +99,10 @@ AXObjectCacheImpl::AXObjectCacheImpl(Document& document)
AXObjectCacheImpl::~AXObjectCacheImpl()
haraken 2015/04/28 10:45:21 Can we insert an ASSERT to verify that dispose() h
keishi 2015/05/28 06:49:15 Done.
{
+}
+
+void AXObjectCacheImpl::dispose()
+{
m_notificationPostTimer.stop();
HashMap<AXID, RefPtr<AXObject>>::iterator end = m_objects.end();

Powered by Google App Engine
This is Rietveld 408576698