EnableParse() returns nsresult.

This commit is contained in:
harishd%netscape.com 1999-07-27 23:33:16 +00:00
parent 17608d0b57
commit 49e2f26016
3 changed files with 9 additions and 6 deletions

View File

@ -2960,11 +2960,12 @@ IsJavaScriptLanguage(const nsString& aName)
nsresult
HTMLContentSink::ResumeParsing()
{
nsresult result=NS_OK;
if (nsnull != mParser) {
mParser->EnableParser(PR_TRUE);
result=mParser->EnableParser(PR_TRUE);
}
return NS_OK;
return result;
}
PRBool

View File

@ -2960,11 +2960,12 @@ IsJavaScriptLanguage(const nsString& aName)
nsresult
HTMLContentSink::ResumeParsing()
{
nsresult result=NS_OK;
if (nsnull != mParser) {
mParser->EnableParser(PR_TRUE);
result=mParser->EnableParser(PR_TRUE);
}
return NS_OK;
return result;
}
PRBool

View File

@ -1916,16 +1916,17 @@ XULContentSinkImpl::UnblockNextOverlay() {
PRInt32 count = mOverlayArray->Count();
mCurrentOverlay++;
nsresult result=NS_OK;
if (mCurrentOverlay == count) {
// Unblock ourselves
mParser->EnableParser(PR_TRUE);
result=mParser->EnableParser(PR_TRUE);
}
else {
// Process the next overlay.
nsString* href = (nsString*)mOverlayArray->ElementAt(mCurrentOverlay);
ProcessOverlay(*href);
}
return NS_OK;
return result;
}
////////////////////////////////////////////////////////////////////////