nsresult result = context->QueryInterface(kIStyleContextIID, (void **) aInstancePtrResult);
nsresult result = context->QueryInterface(NS_GET_IID(nsIStyleContext), (void **) aInstancePtrResult);
NS_NewStyleContext(nsIStyleContext** aInstancePtrResult,                   nsIStyleContext* aParentContext,                   nsIAtom* aPseudoTag,                   nsISupportsArray* aRules,                   nsIPresContext* aPresContext){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  StyleContextImpl* context = new StyleContextImpl(aParentContext, aPseudoTag,                                                    aRules, aPresContext);  if (nsnull == context) {    return NS_ERROR_OUT_OF_MEMORY;  }  nsresult result = context->QueryInterface(kIStyleContextIID, (void **) aInstancePtrResult);  context->RemapStyle(aPresContext);  // remap after initial ref-count is set#ifdef SHARE_STYLECONTEXTS  context->UpdateStyleSetCache();     // add it to the style set cache#endif  return result;}