b=565186; remove NS_ENSURE_TRUE in nsHtml5TreeOpExecutor; r=hsivonen

This commit is contained in:
Vladimir Vukicevic 2010-06-04 12:03:24 -07:00
Родитель e6b3a462fa
Коммит 1a6ff5fbd5
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -607,7 +607,8 @@ nsHtml5TreeOpExecutor::FlushDocumentWrite()
PRBool
nsHtml5TreeOpExecutor::IsScriptEnabled()
{
NS_ENSURE_TRUE(mDocument && mDocShell, PR_TRUE);
if (!mDocument || !mDocShell)
return PR_TRUE;
nsCOMPtr<nsIScriptGlobalObject> globalObject = mDocument->GetScriptGlobalObject();
// Getting context is tricky if the document hasn't had its
// GlobalObject set yet