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 601164d8ed
commit 2e3e89e87c
2 changed files with 8 additions and 8 deletions
+4 -4
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;
}
}