return domImpl->QueryInterface(NS_GET_IID(nsIDOMDOMImplementation), (void**) aInstancePtrResult);
}  return CallQueryInterface(domImpl, aInstancePtrResult);
NS_NewDOMImplementation(nsIDOMDOMImplementation** aInstancePtrResult){  nsDOMImplementation* domImpl = new nsDOMImplementation();  if (domImpl == nsnull)    return NS_ERROR_OUT_OF_MEMORY;  return domImpl->QueryInterface(NS_GET_IID(nsIDOMDOMImplementation), (void**) aInstancePtrResult);}