Bug 729008 - Add memory reporter for FramePropertyTable. r=bz.

This commit is contained in:
Nicholas Nethercote
2012-02-20 21:02:24 -08:00
parent 232a121344
commit 487ce6417d
5 changed files with 80 additions and 35 deletions

View File

@@ -258,4 +258,18 @@ FramePropertyTable::DeleteAll()
mEntries.EnumerateEntries(DeleteEnumerator, nsnull);
}
size_t
FramePropertyTable::SizeOfExcludingThis(nsMallocSizeOfFun aMallocSizeOf) const
{
return mEntries.SizeOfExcludingThis(SizeOfPropertyTableEntryExcludingThis,
aMallocSizeOf);
}
/* static */ size_t
FramePropertyTable::SizeOfPropertyTableEntryExcludingThis(Entry* aEntry,
nsMallocSizeOfFun aMallocSizeOf, void *)
{
return aEntry->mProp.SizeOfExcludingThis(aMallocSizeOf);
}
}