Use different (implicit copy) constructor to get proper reason passed through for better handling of incremental reflow

git-svn-id: svn://10.0.0.236/trunk@4528 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp 1998-06-25 21:11:12 +00:00
parent bad847c57a
commit f7cd4556fb
2 changed files with 2 additions and 3 deletions

View File

@ -556,8 +556,7 @@ nsCSSBlockReflowState::nsCSSBlockReflowState(nsIPresContext* aPresContext,
nsIStyleContext* aBlockSC,
const nsReflowState& aReflowState,
PRBool aComputeMaxElementSize)
: nsReflowState(aBlock, *aReflowState.parentReflowState,
aReflowState.maxSize),
: nsReflowState(aReflowState),
mLineLayout(aPresContext, aSpaceManager),
mInlineLayout(mLineLayout, aBlock, aBlockSC)
{

View File

@ -43,7 +43,7 @@ nsCSSInlineReflowState::nsCSSInlineReflowState(nsCSSLineLayout& aLineLayout,
nsIStyleContext* aInlineSC,
const nsReflowState& aRS,
PRBool aComputeMaxElementSize)
: nsReflowState(aInlineFrame, *aRS.parentReflowState, aRS.maxSize),
: nsReflowState(aRS),
mInlineLayout(aLineLayout, aInlineFrame, aInlineSC)
{
// While we skip around the reflow state that our parent gave us so