mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594.
This commit is contained in:
parent
82e37e23f7
commit
059979d5e5
@ -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…
Reference in New Issue
Block a user