Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/xul/nsBoxLayoutState.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 "nsBoxLayoutState.h"
15
16
nsBoxLayoutState::nsBoxLayoutState(nsPresContext* aPresContext,
17
                                   gfxContext* aRenderingContext,
18
                                   const ReflowInput* aOuterReflowInput,
19
                                   uint16_t aReflowDepth)
20
  : mPresContext(aPresContext)
21
  , mRenderingContext(aRenderingContext)
22
  , mOuterReflowInput(aOuterReflowInput)
23
  , mLayoutFlags(0)
24
  , mReflowDepth(aReflowDepth)
25
  , mPaintingDisabled(false)
26
0
{
27
0
  NS_ASSERTION(mPresContext, "PresContext must be non-null");
28
0
}
29
30
nsBoxLayoutState::nsBoxLayoutState(const nsBoxLayoutState& aState)
31
  : mPresContext(aState.mPresContext)
32
  , mRenderingContext(aState.mRenderingContext)
33
  , mOuterReflowInput(aState.mOuterReflowInput)
34
  , mLayoutFlags(aState.mLayoutFlags)
35
  , mReflowDepth(aState.mReflowDepth + 1)
36
  , mPaintingDisabled(aState.mPaintingDisabled)
37
0
{
38
0
  NS_ASSERTION(mPresContext, "PresContext must be non-null");
39
0
}