Bug 1022612. Part 22: Add MOZ_COUNT_CTOR to nsDisplayWrapList. r=mattwoodrow

--HG--
extra : rebase_source : 09252e01de90bd3e5c0cb77de80ee88e24b85f05
This commit is contained in:
Robert O'Callahan 2014-06-09 16:48:01 +12:00
Родитель de781d04dc
Коммит b767cf2502
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -2996,6 +2996,8 @@ nsDisplayWrapList::nsDisplayWrapList(nsDisplayListBuilder* aBuilder,
: nsDisplayItem(aBuilder, aFrame)
, mOverrideZIndex(0)
{
MOZ_COUNT_CTOR(nsDisplayWrapList);
mList.AppendToTop(aList);
UpdateBounds(aBuilder);
@ -3040,6 +3042,8 @@ nsDisplayWrapList::nsDisplayWrapList(nsDisplayListBuilder* aBuilder,
: nsDisplayItem(aBuilder, aFrame)
, mOverrideZIndex(0)
{
MOZ_COUNT_CTOR(nsDisplayWrapList);
mList.AppendToTop(aItem);
UpdateBounds(aBuilder);
@ -3063,6 +3067,8 @@ nsDisplayWrapList::nsDisplayWrapList(nsDisplayListBuilder* aBuilder,
nsDisplayWrapList::~nsDisplayWrapList() {
mList.DeleteAll();
MOZ_COUNT_DTOR(nsDisplayWrapList);
}
void

Просмотреть файл

@ -2580,9 +2580,6 @@ private:
* detect and handle this case.
*/
class nsDisplayWrapList : public nsDisplayItem {
// This is never instantiated directly, so no need to count constructors and
// destructors.
public:
/**
* Takes all the items from aList and puts them in our list.
@ -2592,7 +2589,10 @@ public:
nsDisplayWrapList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame,
nsDisplayItem* aItem);
nsDisplayWrapList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame)
: nsDisplayItem(aBuilder, aFrame), mOverrideZIndex(0) {}
: nsDisplayItem(aBuilder, aFrame), mOverrideZIndex(0)
{
MOZ_COUNT_CTOR(nsDisplayWrapList);
}
virtual ~nsDisplayWrapList();
/**
* Call this if the wrapped list is changed.