From c65cea94eb3a392cca87a3ffbe622f3a5bc38a0f Mon Sep 17 00:00:00 2001 From: "dveditz%cruzio.com" Date: Fri, 26 Jan 2007 02:30:23 +0000 Subject: [PATCH] Need to pass 'rv' status out, bug 368123. r/sr=dbaron --- layout/generic/nsHTMLFrame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/generic/nsHTMLFrame.cpp b/layout/generic/nsHTMLFrame.cpp index 7ebe5a21f638..e6a16ef07d5a 100644 --- a/layout/generic/nsHTMLFrame.cpp +++ b/layout/generic/nsHTMLFrame.cpp @@ -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; }