mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
prevent lookup of frame state bits of nonexisting child frames bug 266225 r/sr=bzbarsky
This commit is contained in:
parent
40e4684d36
commit
7cffcd3c74
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user