michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // michael@0: // Eric Vaughan michael@0: // Netscape Communications michael@0: // michael@0: // See documentation in associated header file michael@0: // michael@0: michael@0: #include "nsBoxLayoutState.h" michael@0: michael@0: nsBoxLayoutState::nsBoxLayoutState(nsPresContext* aPresContext, michael@0: nsRenderingContext* aRenderingContext, michael@0: const nsHTMLReflowState* aOuterReflowState, michael@0: uint16_t aReflowDepth) michael@0: : mPresContext(aPresContext) michael@0: , mRenderingContext(aRenderingContext) michael@0: , mOuterReflowState(aOuterReflowState) michael@0: , mLayoutFlags(0) michael@0: , mReflowDepth(aReflowDepth) michael@0: , mPaintingDisabled(false) michael@0: { michael@0: NS_ASSERTION(mPresContext, "PresContext must be non-null"); michael@0: } michael@0: michael@0: nsBoxLayoutState::nsBoxLayoutState(const nsBoxLayoutState& aState) michael@0: : mPresContext(aState.mPresContext) michael@0: , mRenderingContext(aState.mRenderingContext) michael@0: , mOuterReflowState(aState.mOuterReflowState) michael@0: , mLayoutFlags(aState.mLayoutFlags) michael@0: , mReflowDepth(aState.mReflowDepth + 1) michael@0: , mPaintingDisabled(aState.mPaintingDisabled) michael@0: { michael@0: NS_ASSERTION(mPresContext, "PresContext must be non-null"); michael@0: }