зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
0ec2b99ac5
Коммит
319d4463f3
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче