void Selector::AppendToStringWithoutCombinators( std::string& aString, StyleSheet* aSheet ) const { AppendToStringWithoutCombinatorsOrNegations(aString, aSheet, false); for (const Selector* negation = mNegations; negation; negation = negation->mNegations) { aString.append(":not("); negation->AppendToStringWithoutCombinatorsOrNegations(aString, aSheet, true); aString.append(1,')'); } }
void nsCSSSelector::AppendToStringWithoutCombinators (nsAString& aString, nsCSSStyleSheet* aSheet) const { AppendToStringWithoutCombinatorsOrNegations(aString, aSheet, PR_FALSE); for (const nsCSSSelector* negation = mNegations; negation; negation = negation->mNegations) { aString.AppendLiteral(":not("); negation->AppendToStringWithoutCombinatorsOrNegations(aString, aSheet, PR_TRUE); aString.Append(PRUnichar(')')); } }