From 2fca0a4fa815072409abff788b4edbb0accfb3c4 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 8 Oct 1999 23:42:13 +0000 Subject: [PATCH] Fixed cellmap ctor/dtor logging to not show up negative --- layout/html/table/src/celldata.h | 11 ++++++++++- layout/html/table/src/nsCellMap.cpp | 11 +++++++++++ layout/tables/celldata.h | 11 ++++++++++- layout/tables/nsCellMap.cpp | 11 +++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) diff --git a/layout/html/table/src/celldata.h b/layout/html/table/src/celldata.h index f7d041a29caf..4d5d2e6a10e9 100644 --- a/layout/html/table/src/celldata.h +++ b/layout/html/table/src/celldata.h @@ -18,6 +18,8 @@ #ifndef CellData_h__ #define CellData_h__ +#include "nsISupports.h" + class nsTableCellFrame; /** Data stored by nsCellMap to rationalize rowspan and colspan cells. @@ -33,9 +35,16 @@ class CellData { public: CellData(); + +#ifndef NS_BUILD_REFCNT_LOGGING CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, CellData* aColSpanData) : mOrigCell(aOrigCell), mRowSpanData(aRowSpanData), mColSpanData(aColSpanData) - {} + { + } +#else + CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, + CellData* aColSpanData); +#endif ~CellData(); diff --git a/layout/html/table/src/nsCellMap.cpp b/layout/html/table/src/nsCellMap.cpp index 10c5c4374928..c62b96286c21 100644 --- a/layout/html/table/src/nsCellMap.cpp +++ b/layout/html/table/src/nsCellMap.cpp @@ -34,6 +34,17 @@ CellData::CellData() mColSpanData = nsnull; } +#ifdef NS_BUILD_REFCNT_LOGGING +CellData::CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, + CellData* aColSpanData) + : mOrigCell(aOrigCell), + mRowSpanData(aRowSpanData), + mColSpanData(aColSpanData) +{ + MOZ_COUNT_CTOR(CellData); +} +#endif + CellData::~CellData() { MOZ_COUNT_DTOR(CellData); diff --git a/layout/tables/celldata.h b/layout/tables/celldata.h index f7d041a29caf..4d5d2e6a10e9 100644 --- a/layout/tables/celldata.h +++ b/layout/tables/celldata.h @@ -18,6 +18,8 @@ #ifndef CellData_h__ #define CellData_h__ +#include "nsISupports.h" + class nsTableCellFrame; /** Data stored by nsCellMap to rationalize rowspan and colspan cells. @@ -33,9 +35,16 @@ class CellData { public: CellData(); + +#ifndef NS_BUILD_REFCNT_LOGGING CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, CellData* aColSpanData) : mOrigCell(aOrigCell), mRowSpanData(aRowSpanData), mColSpanData(aColSpanData) - {} + { + } +#else + CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, + CellData* aColSpanData); +#endif ~CellData(); diff --git a/layout/tables/nsCellMap.cpp b/layout/tables/nsCellMap.cpp index 10c5c4374928..c62b96286c21 100644 --- a/layout/tables/nsCellMap.cpp +++ b/layout/tables/nsCellMap.cpp @@ -34,6 +34,17 @@ CellData::CellData() mColSpanData = nsnull; } +#ifdef NS_BUILD_REFCNT_LOGGING +CellData::CellData(nsTableCellFrame* aOrigCell, CellData* aRowSpanData, + CellData* aColSpanData) + : mOrigCell(aOrigCell), + mRowSpanData(aRowSpanData), + mColSpanData(aColSpanData) +{ + MOZ_COUNT_CTOR(CellData); +} +#endif + CellData::~CellData() { MOZ_COUNT_DTOR(CellData);