layout/xul/grid/nsGridRow.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/grid/nsGridRow.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +//
    1.10 +// Eric Vaughan
    1.11 +// Netscape Communications
    1.12 +//
    1.13 +// See documentation in associated header file
    1.14 +//
    1.15 +
    1.16 +#include "nsGridRow.h"
    1.17 +#include "nsBoxLayoutState.h"
    1.18 +#include "nsIFrame.h"
    1.19 +
    1.20 +nsGridRow::nsGridRow():mIsBogus(false),
    1.21 +                       mBox(nullptr), 
    1.22 +                       mFlex(-1),
    1.23 +                       mPref(-1),
    1.24 +                       mMin(-1),
    1.25 +                       mMax(-1),
    1.26 +                       mTop(-1),
    1.27 +                       mBottom(-1), 
    1.28 +                       mTopMargin(0),
    1.29 +                       mBottomMargin(0)
    1.30 +
    1.31 +{
    1.32 +    MOZ_COUNT_CTOR(nsGridRow);
    1.33 +}
    1.34 +
    1.35 +void
    1.36 +nsGridRow::Init(nsIFrame* aBox, bool aIsBogus)
    1.37 +{
    1.38 +  mBox = aBox;
    1.39 +  mIsBogus = aIsBogus;
    1.40 +  mFlex = -1;
    1.41 +  mPref = -1;
    1.42 +  mMin = -1;
    1.43 +  mMax = -1;
    1.44 +  mTop = -1;
    1.45 +  mBottom = -1;
    1.46 +  mTopMargin = 0;
    1.47 +  mBottomMargin = 0;
    1.48 +}
    1.49 +
    1.50 +nsGridRow::~nsGridRow()
    1.51 +{
    1.52 +   MOZ_COUNT_DTOR(nsGridRow);
    1.53 +}
    1.54 +
    1.55 +bool 
    1.56 +nsGridRow::IsCollapsed()
    1.57 +{
    1.58 +  return mBox && mBox->IsCollapsed();
    1.59 +}
    1.60 +

mercurial