return 0;
NS_PRECONDITION(nsnull != aPresContext, "null arg"); NS_PRECONDITION(nsnull != aContent, "null arg");  NS_PRECONDITION(nsnull != aResults, "null arg");  PRInt32 matchCount = 0;  nsIContent* parentContent = nsnull; if (nsnull != aParentFrame) { aParentFrame->GetContent(parentContent); }  if (aContent != parentContent) { nsIHTMLContent* htmlContent;  if (NS_OK == aContent->QueryInterface(kIHTMLContentIID, (void**)&htmlContent)) { nsHTMLValue value; if (NS_CONTENT_ATTR_HAS_VALUE == htmlContent->GetAttribute(nsHTMLAtoms::style, value)) { if (eHTMLUnit_ISupports == value.GetUnit()) { nsISupports*  rule = value.GetISupportsValue(); if (nsnull != rule) { aResults->AppendElement(rule); matchCount++; nsICSSStyleRule*  cssRule; if (NS_OK == rule->QueryInterface(kICSSStyleRuleIID, (void**)&cssRule)) { nsIStyleRule* important = cssRule->GetImportantRule(); if (nsnull != important) { aResults->AppendElement(important); matchCount++; NS_RELEASE(important); } NS_RELEASE(cssRule); } NS_RELEASE(rule); } } } nsIAtom*  tag; htmlContent->GetTag(tag); if (tag == nsHTMLAtoms::body) { if (nsnull == mBodyRule) { BodyFixupRule*  bodyRule = new BodyFixupRule(); if ((nsnull != bodyRule) && (NS_OK != bodyRule->QueryInterface(kIStyleRuleIID, (void**)&mBodyRule))) { delete bodyRule; } } if (nsnull != mBodyRule) { aResults->AppendElement(mBodyRule); matchCount++; } } NS_RELEASE(htmlContent); } } NS_IF_RELEASE(parentContent);  return matchCount;
PRInt32 HTMLCSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,                                             nsIAtom* aPseudoTag,                                             nsIFrame* aParentFrame,                                             nsISupportsArray* aResults){  // no pseudo frame style...  return 0;}