Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/xul/grid/nsGridRow.cpp
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
// Eric Vaughan
9
// Netscape Communications
10
//
11
// See documentation in associated header file
12
//
13
14
#include "nsGridRow.h"
15
#include "nsBoxLayoutState.h"
16
#include "nsIFrame.h"
17
18
nsGridRow::nsGridRow():mIsBogus(false),
19
                       mBox(nullptr),
20
                       mFlex(-1),
21
                       mPref(-1),
22
                       mMin(-1),
23
                       mMax(-1),
24
                       mTop(-1),
25
                       mBottom(-1),
26
                       mTopMargin(0),
27
                       mBottomMargin(0)
28
29
0
{
30
0
    MOZ_COUNT_CTOR(nsGridRow);
31
0
}
32
33
void
34
nsGridRow::Init(nsIFrame* aBox, bool aIsBogus)
35
0
{
36
0
  mBox = aBox;
37
0
  mIsBogus = aIsBogus;
38
0
  mFlex = -1;
39
0
  mPref = -1;
40
0
  mMin = -1;
41
0
  mMax = -1;
42
0
  mTop = -1;
43
0
  mBottom = -1;
44
0
  mTopMargin = 0;
45
0
  mBottomMargin = 0;
46
0
}
47
48
nsGridRow::~nsGridRow()
49
0
{
50
0
   MOZ_COUNT_DTOR(nsGridRow);
51
0
}
52
53
bool
54
nsGridRow::IsXULCollapsed()
55
0
{
56
0
  return mBox && mBox->IsXULCollapsed();
57
0
}
58