From a445aaa66a1d995beed9ea3341e8840ed647ca25 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 10 Sep 1998 20:37:19 +0000 Subject: [PATCH] Fixed frameset crash git-svn-id: svn://10.0.0.236/trunk@9752 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 6 ++++-- mozilla/layout/html/document/src/nsHTMLContentSink.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 462063f3f43..54a5f3fd04f 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -1379,8 +1379,10 @@ HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel) ("HTMLContentSink::DidBuildModel: layout final content")); // Reflow the last batch of content - mDocument->ContentAppended(mBody, mBodyChildCount); - mBody->ChildCount(mBodyChildCount); + if (nsnull != mBody) { + mDocument->ContentAppended(mBody, mBodyChildCount); + mBody->ChildCount(mBodyChildCount); + } ScrollToRef(); mDocument->EndLoad(); diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index 462063f3f43..54a5f3fd04f 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -1379,8 +1379,10 @@ HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel) ("HTMLContentSink::DidBuildModel: layout final content")); // Reflow the last batch of content - mDocument->ContentAppended(mBody, mBodyChildCount); - mBody->ChildCount(mBodyChildCount); + if (nsnull != mBody) { + mDocument->ContentAppended(mBody, mBodyChildCount); + mBody->ChildCount(mBodyChildCount); + } ScrollToRef(); mDocument->EndLoad();