*aComputedStyle = new nsComputedDOMStyle(); NS_ENSURE_TRUE(*aComputedStyle, NS_ERROR_OUT_OF_MEMORY);
if (sCachedComputedDOMStyle) {     *aComputedStyle = new (sCachedComputedDOMStyle) nsComputedDOMStyle();  sCachedComputedDOMStyle = nsnull; } else {   *aComputedStyle = new nsComputedDOMStyle(); NS_ENSURE_TRUE(*aComputedStyle, NS_ERROR_OUT_OF_MEMORY); }
NS_NewComputedDOMStyle(nsIComputedDOMStyle** aComputedStyle){  NS_ENSURE_ARG_POINTER(aComputedStyle);  *aComputedStyle = new nsComputedDOMStyle();  NS_ENSURE_TRUE(*aComputedStyle, NS_ERROR_OUT_OF_MEMORY);  NS_ADDREF(*aComputedStyle);  return NS_OK;}