Fixed documents w/o titles bug #313016

git-svn-id: svn://10.0.0.236/trunk@7662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-08-10 17:39:48 +00:00
parent 1a7be428bd
commit f7457a3f72
2 changed files with 8 additions and 0 deletions

View File

@ -989,6 +989,10 @@ HTMLContentSink::WillBuildModel(void)
NS_IMETHODIMP
HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
{
if (nsnull == mTitle) {
((nsHTMLDocument*)mDocument)->SetTitle("");
}
PRInt32 i, ns = mDocument->GetNumberOfShells();
for (i = 0; i < ns; i++) {
nsIPresShell* shell = mDocument->GetShellAt(i);

View File

@ -989,6 +989,10 @@ HTMLContentSink::WillBuildModel(void)
NS_IMETHODIMP
HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
{
if (nsnull == mTitle) {
((nsHTMLDocument*)mDocument)->SetTitle("");
}
PRInt32 i, ns = mDocument->GetNumberOfShells();
for (i = 0; i < ns; i++) {
nsIPresShell* shell = mDocument->GetShellAt(i);