From 4b5799a85fa388e2c974618f93b5c4e9da62bd7f Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Mon, 20 Mar 2000 23:47:01 +0000 Subject: [PATCH] bug 32238 (UMR in inline reflow context) all I did was initialize the members of a struct in the constructor r=troy git-svn-id: svn://10.0.0.236/trunk@63496 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsInlineFrame.h | 7 +++++++ mozilla/layout/html/base/src/nsInlineFrame.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/mozilla/layout/generic/nsInlineFrame.h b/mozilla/layout/generic/nsInlineFrame.h index 60c5f007bb9..442f9e86467 100644 --- a/mozilla/layout/generic/nsInlineFrame.h +++ b/mozilla/layout/generic/nsInlineFrame.h @@ -96,6 +96,13 @@ protected: nsInlineFrame* mNextInFlow; PRBool mSetParentPointer; // when reflowing child frame first set its // parent frame pointer + + InlineReflowState() { + mNextRCFrame = nsnull; + mPrevFrame = nsnull; + mNextInFlow = nsnull; + mSetParentPointer = PR_TRUE; + }; }; nsInlineFrame(); diff --git a/mozilla/layout/html/base/src/nsInlineFrame.h b/mozilla/layout/html/base/src/nsInlineFrame.h index 60c5f007bb9..442f9e86467 100644 --- a/mozilla/layout/html/base/src/nsInlineFrame.h +++ b/mozilla/layout/html/base/src/nsInlineFrame.h @@ -96,6 +96,13 @@ protected: nsInlineFrame* mNextInFlow; PRBool mSetParentPointer; // when reflowing child frame first set its // parent frame pointer + + InlineReflowState() { + mNextRCFrame = nsnull; + mPrevFrame = nsnull; + mNextInFlow = nsnull; + mSetParentPointer = PR_TRUE; + }; }; nsInlineFrame();