nsresult NS_NewMediaList(nsISupportsArray* aArray, nsICSSStyleSheet* aSheet, nsIMediaList** aInstancePtrResult) {
NS_NewMediaList(const nsAString& aMediaText, nsIMediaList** aInstancePtrResult) { nsresult rv;
nsresult NS_NewMediaList(nsISupportsArray* aArray, nsICSSStyleSheet* aSheet, nsIMediaList** aInstancePtrResult){  NS_ASSERTION(aInstancePtrResult, "Null out param.");  DOMMediaListImpl* medialist = new DOMMediaListImpl(aArray, NS_STATIC_CAST(CSSStyleSheetImpl*, aSheet));  *aInstancePtrResult = medialist;  NS_ENSURE_TRUE(medialist, NS_ERROR_OUT_OF_MEMORY);