Changed nsBulletFrame to set the dirty flag on the it's parent's first frame instead of itself when an Image is updated b=36703 r=buster@netscape.com tested on WINNT, Linux
git-svn-id: svn://10.0.0.236/trunk@71818 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -929,12 +929,21 @@ nsBulletFrame::UpdateBulletCB(nsIPresContext* aPresContext,
|
||||
nsIFrame* parent;
|
||||
aFrame->GetParent(&parent);
|
||||
if (parent) {
|
||||
// Mark the bullet frame dirty and ask its parent to reflow it.
|
||||
nsFrameState state;
|
||||
aFrame->GetFrameState(&state);
|
||||
state |= NS_FRAME_IS_DIRTY;
|
||||
aFrame->SetFrameState(state);
|
||||
parent->ReflowDirtyChild(shell, aFrame);
|
||||
// Reflow the first child of the parent not the bullet frame.
|
||||
// The bullet frame is not in a line list so marking it dirty
|
||||
// has no effect. The reflowing of the bullet frame is done
|
||||
// indirectly.
|
||||
nsIFrame* frame = nsnull;
|
||||
parent->FirstChild(aPresContext, nsnull, &frame);
|
||||
if (nsnull != frame) {
|
||||
nsFrameState state;
|
||||
frame->GetFrameState(&state);
|
||||
state |= NS_FRAME_IS_DIRTY;
|
||||
frame->SetFrameState(state);
|
||||
parent->ReflowDirtyChild(shell, frame);
|
||||
} else {
|
||||
NS_ASSERTION(0, "No frame to mark dirty for bullet frame.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
NS_ASSERTION(0, "No parent to pass the reflow request up to.");
|
||||
|
||||
Reference in New Issue
Block a user