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:
parent
1a7be428bd
commit
f7457a3f72
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user