зеркало из https://github.com/mozilla/gecko-dev.git
Fix percentage widths on inlines within inlines. b=97695 r+sr=roc
This commit is contained in:
Родитель
ec5678ff34
Коммит
f3fb5dea45
|
@ -906,19 +906,9 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
|||
reason = eReflowReason_Dirty;
|
||||
}
|
||||
|
||||
// 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,
|
||||
containingBlockWidth,
|
||||
psd->mReflowState->availableHeight,
|
||||
reason);
|
||||
aFrame, availSize, reason);
|
||||
reflowState.mLineLayout = this;
|
||||
reflowState.mFlags.mIsTopOfPage = GetFlag(LL_ISTOPOFPAGE);
|
||||
SetFlag(LL_UNDERSTANDSNWHITESPACE, PR_FALSE);
|
||||
|
|
|
@ -906,19 +906,9 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
|||
reason = eReflowReason_Dirty;
|
||||
}
|
||||
|
||||
// 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,
|
||||
containingBlockWidth,
|
||||
psd->mReflowState->availableHeight,
|
||||
reason);
|
||||
aFrame, availSize, reason);
|
||||
reflowState.mLineLayout = this;
|
||||
reflowState.mFlags.mIsTopOfPage = GetFlag(LL_ISTOPOFPAGE);
|
||||
SetFlag(LL_UNDERSTANDSNWHITESPACE, PR_FALSE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче