1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/nsBoxLayoutState.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +// 1.10 +// Eric Vaughan 1.11 +// Netscape Communications 1.12 +// 1.13 +// See documentation in associated header file 1.14 +// 1.15 + 1.16 +#include "nsBoxLayoutState.h" 1.17 + 1.18 +nsBoxLayoutState::nsBoxLayoutState(nsPresContext* aPresContext, 1.19 + nsRenderingContext* aRenderingContext, 1.20 + const nsHTMLReflowState* aOuterReflowState, 1.21 + uint16_t aReflowDepth) 1.22 + : mPresContext(aPresContext) 1.23 + , mRenderingContext(aRenderingContext) 1.24 + , mOuterReflowState(aOuterReflowState) 1.25 + , mLayoutFlags(0) 1.26 + , mReflowDepth(aReflowDepth) 1.27 + , mPaintingDisabled(false) 1.28 +{ 1.29 + NS_ASSERTION(mPresContext, "PresContext must be non-null"); 1.30 +} 1.31 + 1.32 +nsBoxLayoutState::nsBoxLayoutState(const nsBoxLayoutState& aState) 1.33 + : mPresContext(aState.mPresContext) 1.34 + , mRenderingContext(aState.mRenderingContext) 1.35 + , mOuterReflowState(aState.mOuterReflowState) 1.36 + , mLayoutFlags(aState.mLayoutFlags) 1.37 + , mReflowDepth(aState.mReflowDepth + 1) 1.38 + , mPaintingDisabled(aState.mPaintingDisabled) 1.39 +{ 1.40 + NS_ASSERTION(mPresContext, "PresContext must be non-null"); 1.41 +}