Bug 87543. Don't try to do arithmetic when psd->mRightEdge == NS_UNCONSTRAINEDSIZE. r=rbs, sr=attinasi
This commit is contained in:
@@ -847,10 +847,17 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||
}
|
||||
}
|
||||
|
||||
// Unless we're doing an unconstrained reflow, compute the
|
||||
// containing block's width.
|
||||
nscoord containingBlockWidth =
|
||||
(NS_UNCONSTRAINEDSIZE != psd->mRightEdge)
|
||||
? (psd->mRightEdge - psd->mLeftEdge)
|
||||
: NS_UNCONSTRAINEDSIZE;
|
||||
|
||||
// Setup reflow state for reflowing the frame
|
||||
nsHTMLReflowState reflowState(mPresContext, *psd->mReflowState,
|
||||
aFrame, availSize,
|
||||
(psd->mRightEdge - psd->mLeftEdge),
|
||||
containingBlockWidth,
|
||||
psd->mReflowState->availableHeight);
|
||||
reflowState.reason = reason;
|
||||
reflowState.mLineLayout = this;
|
||||
|
||||
Reference in New Issue
Block a user