Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594.
git-svn-id: svn://10.0.0.236/trunk@65304 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
84ef16c22c
commit
cb06101661
@ -246,7 +246,7 @@ public:
|
||||
* Check to see if context is as yet intialized. Used to prevent
|
||||
* reentrancy issues during the initialization process.
|
||||
*
|
||||
* @return NS_OK if initialized, NS_COMFALSE if not
|
||||
* @return NS_OK if initialized, NS_ERROR_NOT_INITIALIZED if not
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD IsContextInitialized() = 0;
|
||||
|
||||
@ -76,7 +76,7 @@ public:
|
||||
* a global symbol.
|
||||
* @param aCID out parameter that returns the class ID
|
||||
* that corresponds to the name
|
||||
* @result NS_OK if the lookup succeeded. NS_COMFALSE
|
||||
* @result NS_OK if the lookup succeeded. NS_ERROR_INVALID_ARG
|
||||
* if the lookup failed.
|
||||
*/
|
||||
NS_IMETHOD LookupName(const nsString& aName,
|
||||
|
||||
@ -892,7 +892,7 @@ nsJSContext::InitClasses()
|
||||
NS_IMETHODIMP
|
||||
nsJSContext::IsContextInitialized()
|
||||
{
|
||||
return (mIsInitialized) ? NS_OK : NS_COMFALSE;
|
||||
return (mIsInitialized) ? NS_OK : NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
||||
@ -503,7 +503,8 @@ nsJSUtils::nsGlobalResolve(JSContext* aContext,
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
if (NS_COMFALSE == scriptContext->IsContextInitialized()) {
|
||||
result = scriptContext->IsContextInitialized();
|
||||
if (NS_FAILED(result)) {
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,11 @@ nsresult nsJSDOMEventListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
|
||||
nsresult nsJSDOMEventListener::CheckIfEqual(nsIScriptEventListener *aListener)
|
||||
{
|
||||
return NS_COMFALSE;
|
||||
/*
|
||||
* This should be rewritten to use a PRBool out parameter in stead of
|
||||
* using the return value to show if this equals aListener...
|
||||
*/
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user