2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
//
|
|
|
|
// Eric Vaughan
|
|
|
|
// Netscape Communications
|
|
|
|
//
|
|
|
|
// See documentation in associated header file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "nsBoxLayoutState.h"
|
|
|
|
|
|
|
|
nsBoxLayoutState::nsBoxLayoutState(nsPresContext* aPresContext,
|
2011-04-07 18:04:40 -07:00
|
|
|
nsRenderingContext* aRenderingContext,
|
2011-11-23 18:48:23 -08:00
|
|
|
const nsHTMLReflowState* aOuterReflowState,
|
2012-08-22 08:56:38 -07:00
|
|
|
uint16_t aReflowDepth)
|
2007-03-22 10:30:00 -07:00
|
|
|
: mPresContext(aPresContext)
|
|
|
|
, mRenderingContext(aRenderingContext)
|
2011-11-23 18:48:23 -08:00
|
|
|
, mOuterReflowState(aOuterReflowState)
|
2007-03-22 10:30:00 -07:00
|
|
|
, mLayoutFlags(0)
|
2008-04-09 21:39:41 -07:00
|
|
|
, mReflowDepth(aReflowDepth)
|
2011-10-17 07:59:28 -07:00
|
|
|
, mPaintingDisabled(false)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
NS_ASSERTION(mPresContext, "PresContext must be non-null");
|
|
|
|
}
|
|
|
|
|
|
|
|
nsBoxLayoutState::nsBoxLayoutState(const nsBoxLayoutState& aState)
|
|
|
|
: mPresContext(aState.mPresContext)
|
|
|
|
, mRenderingContext(aState.mRenderingContext)
|
2011-11-23 18:48:23 -08:00
|
|
|
, mOuterReflowState(aState.mOuterReflowState)
|
2007-03-22 10:30:00 -07:00
|
|
|
, mLayoutFlags(aState.mLayoutFlags)
|
2008-04-09 21:39:41 -07:00
|
|
|
, mReflowDepth(aState.mReflowDepth + 1)
|
2007-03-22 10:30:00 -07:00
|
|
|
, mPaintingDisabled(aState.mPaintingDisabled)
|
|
|
|
{
|
|
|
|
NS_ASSERTION(mPresContext, "PresContext must be non-null");
|
|
|
|
}
|