Make sure a reflow command is posted for all dirty children in nsContainerFrame::ReflowDirtyChild, even if there's already a dirty child. Fix for bug 57251. r=attinasi,sr=waterson

This commit is contained in:
roc+%cs.cmu.edu 2001-04-17 23:12:36 +00:00
Родитель 0ec2b99ac5
Коммит 319d4463f3
2 изменённых файлов: 10 добавлений и 10 удалений

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

@ -324,12 +324,12 @@ nsContainerFrame::ReflowDirtyChild(nsIPresShell* aPresShell, nsIFrame* aChild)
{
// The container frame always generates a reflow command
// targeted at its child
if (!(mState & NS_FRAME_HAS_DIRTY_CHILDREN)) {
mState |= NS_FRAME_HAS_DIRTY_CHILDREN;
// Note that even if this flag is already set, we still need to reflow the
// child because the frame may have more than one child
mState |= NS_FRAME_HAS_DIRTY_CHILDREN;
nsFrame::CreateAndPostReflowCommand(aPresShell, aChild,
nsIReflowCommand::ReflowDirty, nsnull, nsnull, nsnull);
}
nsFrame::CreateAndPostReflowCommand(aPresShell, aChild,
nsIReflowCommand::ReflowDirty, nsnull, nsnull, nsnull);
return NS_OK;
}

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

@ -324,12 +324,12 @@ nsContainerFrame::ReflowDirtyChild(nsIPresShell* aPresShell, nsIFrame* aChild)
{
// The container frame always generates a reflow command
// targeted at its child
if (!(mState & NS_FRAME_HAS_DIRTY_CHILDREN)) {
mState |= NS_FRAME_HAS_DIRTY_CHILDREN;
// Note that even if this flag is already set, we still need to reflow the
// child because the frame may have more than one child
mState |= NS_FRAME_HAS_DIRTY_CHILDREN;
nsFrame::CreateAndPostReflowCommand(aPresShell, aChild,
nsIReflowCommand::ReflowDirty, nsnull, nsnull, nsnull);
}
nsFrame::CreateAndPostReflowCommand(aPresShell, aChild,
nsIReflowCommand::ReflowDirty, nsnull, nsnull, nsnull);
return NS_OK;
}