if (aPseudoTag == nsHTMLAtoms::firstLetterPseudo) { if (aResults->Count()) { if (nsnull == mFirstLetterRule) { mFirstLetterRule = new CSSFirstLetterRule(this); if (mFirstLetterRule) { NS_ADDREF(mFirstLetterRule); } } if (mFirstLetterRule) { aResults->AppendElement(mFirstLetterRule); return 1; } } }
PRInt32 HTMLCSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,                                             nsIContent* aParentContent,                                             nsIAtom* aPseudoTag,                                             nsIStyleContext* aParentContext,                                             nsISupportsArray* aResults){  if (aPseudoTag == nsHTMLAtoms::firstLinePseudo) {    if (aResults->Count()) {       if (nsnull == mFirstLineRule) {        mFirstLineRule = new CSSFirstLineRule(this);        if (mFirstLineRule) {          NS_ADDREF(mFirstLineRule);        }      }      if (mFirstLineRule) {        aResults->AppendElement(mFirstLineRule);         return 1;       }    }   }  // else no pseudo frame style...   return 0;}