layout/xul/grid/nsGridRow.cpp

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 //
michael@0 7 // Eric Vaughan
michael@0 8 // Netscape Communications
michael@0 9 //
michael@0 10 // See documentation in associated header file
michael@0 11 //
michael@0 12
michael@0 13 #include "nsGridRow.h"
michael@0 14 #include "nsBoxLayoutState.h"
michael@0 15 #include "nsIFrame.h"
michael@0 16
michael@0 17 nsGridRow::nsGridRow():mIsBogus(false),
michael@0 18 mBox(nullptr),
michael@0 19 mFlex(-1),
michael@0 20 mPref(-1),
michael@0 21 mMin(-1),
michael@0 22 mMax(-1),
michael@0 23 mTop(-1),
michael@0 24 mBottom(-1),
michael@0 25 mTopMargin(0),
michael@0 26 mBottomMargin(0)
michael@0 27
michael@0 28 {
michael@0 29 MOZ_COUNT_CTOR(nsGridRow);
michael@0 30 }
michael@0 31
michael@0 32 void
michael@0 33 nsGridRow::Init(nsIFrame* aBox, bool aIsBogus)
michael@0 34 {
michael@0 35 mBox = aBox;
michael@0 36 mIsBogus = aIsBogus;
michael@0 37 mFlex = -1;
michael@0 38 mPref = -1;
michael@0 39 mMin = -1;
michael@0 40 mMax = -1;
michael@0 41 mTop = -1;
michael@0 42 mBottom = -1;
michael@0 43 mTopMargin = 0;
michael@0 44 mBottomMargin = 0;
michael@0 45 }
michael@0 46
michael@0 47 nsGridRow::~nsGridRow()
michael@0 48 {
michael@0 49 MOZ_COUNT_DTOR(nsGridRow);
michael@0 50 }
michael@0 51
michael@0 52 bool
michael@0 53 nsGridRow::IsCollapsed()
michael@0 54 {
michael@0 55 return mBox && mBox->IsCollapsed();
michael@0 56 }
michael@0 57

mercurial