michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // michael@0: // Eric Vaughan michael@0: // Netscape Communications michael@0: // michael@0: // See documentation in associated header file michael@0: // michael@0: michael@0: #include "nsGridRow.h" michael@0: #include "nsBoxLayoutState.h" michael@0: #include "nsIFrame.h" michael@0: michael@0: nsGridRow::nsGridRow():mIsBogus(false), michael@0: mBox(nullptr), michael@0: mFlex(-1), michael@0: mPref(-1), michael@0: mMin(-1), michael@0: mMax(-1), michael@0: mTop(-1), michael@0: mBottom(-1), michael@0: mTopMargin(0), michael@0: mBottomMargin(0) michael@0: michael@0: { michael@0: MOZ_COUNT_CTOR(nsGridRow); michael@0: } michael@0: michael@0: void michael@0: nsGridRow::Init(nsIFrame* aBox, bool aIsBogus) michael@0: { michael@0: mBox = aBox; michael@0: mIsBogus = aIsBogus; michael@0: mFlex = -1; michael@0: mPref = -1; michael@0: mMin = -1; michael@0: mMax = -1; michael@0: mTop = -1; michael@0: mBottom = -1; michael@0: mTopMargin = 0; michael@0: mBottomMargin = 0; michael@0: } michael@0: michael@0: nsGridRow::~nsGridRow() michael@0: { michael@0: MOZ_COUNT_DTOR(nsGridRow); michael@0: } michael@0: michael@0: bool michael@0: nsGridRow::IsCollapsed() michael@0: { michael@0: return mBox && mBox->IsCollapsed(); michael@0: } michael@0: