aCssText.Assign(NS_LITERAL_STRING("@media "));
aCssText.AssignLiteral("@media ");
CSSMediaRuleImpl::GetCssText(nsAString& aCssText){  PRUint32 index;  PRUint32 count;  aCssText.Assign(NS_LITERAL_STRING("@media "));  // get all the media  if (mMedia) {    mMedia->Count(&count);    for (index = 0; index < count; index++) {      nsCOMPtr<nsIAtom> medium = dont_AddRef((nsIAtom*)mMedia->ElementAt(index));      if (medium) {        nsAutoString tempString;        if (index > 0)          aCssText.Append(NS_LITERAL_STRING(", "));        medium->ToString(tempString);        aCssText.Append(tempString);      }    }  }  aCssText.Append(NS_LITERAL_STRING(" {\n"));  // get all the rules  if (mRules) {    mRules->Count(&count);    for (index = 0; index < count; index++) {      nsCOMPtr<nsICSSRule> rule;      mRules->GetElementAt(index, getter_AddRefs(rule));      nsCOMPtr<nsIDOMCSSRule> domRule;      rule->GetDOMRule(getter_AddRefs(domRule));      if (domRule) {        nsAutoString cssText;        domRule->GetCssText(cssText);        aCssText.Append(NS_LITERAL_STRING("  ") +                        cssText +                        NS_LITERAL_STRING("\n"));      }    }  }  aCssText.Append(NS_LITERAL_STRING("}"));    return NS_OK;}