nsDOMImplementation::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject)
nsDOMStyleSheetCollection::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject)
nsDOMImplementation::GetScriptObject(nsIScriptContext *aContext,                                      void** aScriptObject){  nsresult result = NS_OK;  if (nsnull == mScriptObject) {    nsIDOMScriptObjectFactory *factory;    result = nsServiceManager::GetService(kDOMScriptObjectFactoryCID,                                          kIDOMScriptObjectFactoryIID,                                          (nsISupports **)&factory);    if (NS_OK == result) {      nsIScriptGlobalObject *global = aContext->GetGlobalObject();      result = factory->NewScriptDOMImplementation(aContext, (nsISupports*)(nsIDOMDOMImplementation*)this,                                                   global, &mScriptObject);      NS_RELEASE(global);      NS_RELEASE(factory);    }  }    *aScriptObject = mScriptObject;  return result;}