/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ #include "nsCRT.h" #include "nsVoidArray.h" #include "nsCellMap.h" #include "nsTableFrame.h" #ifdef NS_DEBUG static PRBool gsDebug1 = PR_FALSE; #else static const PRBool gsDebug1 = PR_FALSE; #endif static const PRInt32 gBytesPerPointer = sizeof(PRInt32); nsCellMap::nsCellMap(int aRows, int aColumns) : mRowCount(aRows), mColCount(aColumns) { mCells = nsnull; mColFrames = nsnull; Reset(aRows, aColumns); } nsCellMap::~nsCellMap() { if (nsnull!=mCells) { for (int i=0;iElementAt(aColIndex)); }