mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
EnableParse() returns nsresult.
This commit is contained in:
parent
17608d0b57
commit
49e2f26016
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user