98218 - set layout mode whether a DOCTYPE exists or not

r=heikki, sr=jst.
This commit is contained in:
harishd%netscape.com 2001-12-07 21:53:39 +00:00
Родитель a51eaa42b8
Коммит 68f6ada8cd
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -2739,6 +2739,11 @@ HTMLContentSink::WillBuildModel(void)
mBeginLoadTime = PR_IntervalToMicroseconds(PR_IntervalNow());
}
mScrolledToRefAlready = PR_FALSE;
if (mHTMLDocument) {
mHTMLDocument->SetDTDMode(mParser? mParser->GetParseMode():eDTDMode_quirks);
}
// Notify document that the load is beginning
mDocument->BeginLoad();
return NS_OK;