Fix percentage widths on inlines within inlines. b=97695 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2003-12-19 05:41:35 +00:00
Родитель ec5678ff34
Коммит f3fb5dea45
2 изменённых файлов: 2 добавлений и 22 удалений

Просмотреть файл

@ -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);