Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/xul/grid/nsGridRow.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
/**
8
9
  Author:
10
  Eric D Vaughan
11
12
**/
13
14
#ifndef nsGridRow_h___
15
#define nsGridRow_h___
16
17
#include "nsCoord.h"
18
19
class nsIFrame;
20
21
/**
22
 * The row (or column) data structure in the grid cellmap.
23
 */
24
class nsGridRow
25
{
26
public:
27
   nsGridRow();
28
   ~nsGridRow();
29
30
   void Init(nsIFrame* aBox, bool aIsBogus);
31
32
// accessors
33
0
   nsIFrame* GetBox()   { return mBox;          }
34
0
   bool IsPrefSet() { return (mPref != -1); }
35
0
   bool IsMinSet()  { return (mMin  != -1); }
36
0
   bool IsMaxSet()  { return (mMax  != -1); }
37
0
   bool IsFlexSet() { return (mFlex != -1); }
38
0
   bool IsOffsetSet() { return (mTop != -1 && mBottom != -1); }
39
   bool IsXULCollapsed();
40
41
public:
42
43
   bool    mIsBogus;
44
   nsIFrame* mBox;
45
   nscoord mFlex;
46
   nscoord mPref;
47
   nscoord mMin;
48
   nscoord mMax;
49
   nscoord mTop;
50
   nscoord mBottom;
51
   nscoord mTopMargin;
52
   nscoord mBottomMargin;
53
54
};
55
56
57
#endif
58