Need to pass 'rv' status out, bug 368123. r/sr=dbaron

This commit is contained in:
dveditz%cruzio.com 2007-01-26 02:30:23 +00:00
parent 395cc997a8
commit c65cea94eb

View File

@ -281,8 +281,8 @@ CanvasFrame::AppendFrames(nsIAtom* aListName,
#endif
mFrames.AppendFrame(nsnull, aFrameList);
GetPresContext()->PresShell()->
FrameNeedsReflow(this, nsIPresShell::eTreeChange);
rv = GetPresContext()->PresShell()->
FrameNeedsReflow(this, nsIPresShell::eTreeChange);
}
return rv;
@ -329,8 +329,8 @@ CanvasFrame::RemoveFrame(nsIAtom* aListName,
mFrames.DestroyFrame(aOldFrame);
AddStateBits(NS_FRAME_HAS_DIRTY_CHILDREN);
GetPresContext()->PresShell()->
FrameNeedsReflow(this, nsIPresShell::eTreeChange);
rv = GetPresContext()->PresShell()->
FrameNeedsReflow(this, nsIPresShell::eTreeChange);
} else {
rv = NS_ERROR_FAILURE;
}