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:
parent
bad847c57a
commit
f7cd4556fb
@ -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)
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user