Fixed frameset crash

git-svn-id: svn://10.0.0.236/trunk@9752 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-09-10 20:37:19 +00:00
parent 8105e6a166
commit a445aaa66a
2 changed files with 8 additions and 4 deletions

View File

@@ -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();