prevent lookup of frame state bits of nonexisting child frames bug 266225 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2004-10-27 16:11:08 +00:00
parent 40e4684d36
commit 7cffcd3c74
2 changed files with 8 additions and 8 deletions

View File

@ -365,15 +365,15 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext,
if (reason == eReflowReason_Dirty)
{
if (reflowContent) {
reflowContent =
reflowContent = mContentFrame ?
(mContentFrame->GetStateBits()
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0;
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0 : PR_FALSE;
}
if (reflowLegend) {
reflowLegend =
reflowLegend = mLegendFrame ?
(mLegendFrame->GetStateBits()
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0;
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0 : PR_FALSE;
}
}

View File

@ -365,15 +365,15 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext,
if (reason == eReflowReason_Dirty)
{
if (reflowContent) {
reflowContent =
reflowContent = mContentFrame ?
(mContentFrame->GetStateBits()
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0;
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0 : PR_FALSE;
}
if (reflowLegend) {
reflowLegend =
reflowLegend = mLegendFrame ?
(mLegendFrame->GetStateBits()
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0;
& (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)) != 0 : PR_FALSE;
}
}