nsIStyledContent *styledContent = aData->mStyledContent;  if (styledContent) { nsRuleWalker *ruleWalker = aData->mRuleWalker; if (styledContent->IsContentOfType(nsIContent::eHTML)) { nsIAtom* tag = aData->mContentTag;   if (tag == nsHTMLAtoms::a) { if (mLinkRule || mVisitedRule || mActiveRule) { if (aData->mIsHTMLLink) { switch (aData->mLinkState) { case eLinkState_Unvisited: if (mLinkRule) ruleWalker->Forward(mLinkRule); break; case eLinkState_Visited: if (mVisitedRule) ruleWalker->Forward(mVisitedRule); break; default: break; }   if (mActiveRule && (aData->mEventState & NS_EVENT_STATE_ACTIVE)) ruleWalker->Forward(mActiveRule); } } }  else if (tag == nsHTMLAtoms::th) { ruleWalker->Forward(mTableTHRule); } else if (tag == nsHTMLAtoms::tr) { ruleWalker->Forward(mTableRowRule); } else if ((tag == nsHTMLAtoms::thead) || (tag == nsHTMLAtoms::tbody) || (tag == nsHTMLAtoms::tfoot)) { ruleWalker->Forward(mTableTbodyRule); } else if (tag == nsHTMLAtoms::col) { ruleWalker->Forward(mTableColRule); } else if (tag == nsHTMLAtoms::colgroup) { ruleWalker->Forward(mTableColgroupRule); } else if (tag == nsHTMLAtoms::table) { if (aData->mIsQuirkMode) ruleWalker->Forward(mDocumentColorRule); } }   styledContent->WalkContentStyleRules(ruleWalker); }
HTMLStyleSheetImpl::RulesMatching(PseudoRuleProcessorData* aData,                                  nsIAtom* aMedium){  // no pseudo frame style  return NS_OK;}