зеркало из https://github.com/mozilla/gecko-dev.git
Bug 899089 - Improve event listener reporting in CC graphs, r=khuey
This commit is contained in:
Родитель
685ad9fca2
Коммит
ab9f91f38b
|
@ -163,8 +163,22 @@ ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
|
|||
const char* aName,
|
||||
unsigned aFlags)
|
||||
{
|
||||
CycleCollectionNoteChild(aCallback, aField.mListener.GetISupports(), aName,
|
||||
aFlags);
|
||||
if (MOZ_UNLIKELY(aCallback.WantDebugInfo())) {
|
||||
nsAutoCString name;
|
||||
name.AppendASCII(aName);
|
||||
if (aField.mTypeAtom) {
|
||||
name.AppendASCII(" event=");
|
||||
name.Append(nsAtomCString(aField.mTypeAtom));
|
||||
name.AppendASCII(" listenerType=");
|
||||
name.AppendInt(aField.mListenerType);
|
||||
name.AppendASCII(" ");
|
||||
}
|
||||
CycleCollectionNoteChild(aCallback, aField.mListener.GetISupports(), name.get(),
|
||||
aFlags);
|
||||
} else {
|
||||
CycleCollectionNoteChild(aCallback, aField.mListener.GetISupports(), aName,
|
||||
aFlags);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsEventListenerManager)
|
||||
|
|
Загрузка…
Ссылка в новой задаче