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

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

Issue 1181613002: Added check for leaking AXObjects Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXObject.cpp
diff --git a/Source/modules/accessibility/AXObject.cpp b/Source/modules/accessibility/AXObject.cpp
index 21eb762cd0146c48d5b545358409f72b0fd92892..0a627524f3b318a9a5c533198610df587c241aec 100644
--- a/Source/modules/accessibility/AXObject.cpp
+++ b/Source/modules/accessibility/AXObject.cpp
@@ -369,6 +369,8 @@ HTMLDialogElement* getActiveDialogElement(Node* node)
} // namespace
+unsigned AXObject::s_instanceCount = 0;
+
AXObject::AXObject(AXObjectCacheImpl* axObjectCache)
: m_id(0)
, m_haveChildren(false)
@@ -386,11 +388,13 @@ AXObject::AXObject(AXObjectCacheImpl* axObjectCache)
, m_cachedLiveRegionRoot(0)
, m_axObjectCache(axObjectCache)
{
+ ++s_instanceCount;
}
AXObject::~AXObject()
{
ASSERT(isDetached());
+ --s_instanceCount;
}
void AXObject::detach()
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698