2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
//
|
|
|
|
// Eric Vaughan
|
|
|
|
// Netscape Communications
|
|
|
|
//
|
|
|
|
// See documentation in associated header file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "nsGridRow.h"
|
|
|
|
#include "nsBoxLayoutState.h"
|
2012-08-05 20:00:56 -07:00
|
|
|
#include "nsIFrame.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-10-17 07:59:28 -07:00
|
|
|
nsGridRow::nsGridRow():mIsBogus(false),
|
2012-07-30 07:20:58 -07:00
|
|
|
mBox(nullptr),
|
2007-03-22 10:30:00 -07:00
|
|
|
mFlex(-1),
|
|
|
|
mPref(-1),
|
|
|
|
mMin(-1),
|
|
|
|
mMax(-1),
|
|
|
|
mTop(-1),
|
|
|
|
mBottom(-1),
|
|
|
|
mTopMargin(0),
|
|
|
|
mBottomMargin(0)
|
|
|
|
|
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(nsGridRow);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2012-08-05 20:00:57 -07:00
|
|
|
nsGridRow::Init(nsIFrame* aBox, bool aIsBogus)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
mBox = aBox;
|
|
|
|
mIsBogus = aIsBogus;
|
|
|
|
mFlex = -1;
|
|
|
|
mPref = -1;
|
|
|
|
mMin = -1;
|
|
|
|
mMax = -1;
|
|
|
|
mTop = -1;
|
|
|
|
mBottom = -1;
|
|
|
|
mTopMargin = 0;
|
|
|
|
mBottomMargin = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsGridRow::~nsGridRow()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(nsGridRow);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool
|
2011-06-15 14:03:49 -07:00
|
|
|
nsGridRow::IsCollapsed()
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-06-15 14:03:49 -07:00
|
|
|
return mBox && mBox->IsCollapsed();
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|