Instrument nsSVGRenderingObserverList for trace-refcnt (bug 499613). r=roc

This commit is contained in:
Jesse Ruderman 2009-06-24 14:19:02 -07:00
parent a6223e7bd0
commit 7dd12cd149

View File

@ -188,8 +188,15 @@ protected:
*/
class nsSVGRenderingObserverList {
public:
nsSVGRenderingObserverList() { mObservers.Init(5); }
~nsSVGRenderingObserverList() { InvalidateAll(); }
nsSVGRenderingObserverList() {
MOZ_COUNT_CTOR(nsSVGRenderingObserverList);
mObservers.Init(5);
}
~nsSVGRenderingObserverList() {
InvalidateAll();
MOZ_COUNT_DTOR(nsSVGRenderingObserverList);
}
void Add(nsSVGRenderingObserver* aObserver)
{ mObservers.PutEntry(aObserver); }