if (ruleWalker) { ruleWalker->Forward(mTableColRule); }
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->mCompatMode == eCompatibility_NavQuirks) ruleWalker->Forward(mDocumentColorRule); } }   styledContent->WalkContentStyleRules(ruleWalker);
HTMLStyleSheetImpl::RulesMatching(PseudoRuleProcessorData* aData,                                  nsIAtom* aMedium){  nsIAtom* pseudoTag = aData->mPseudoTag;  if (pseudoTag == nsCSSAnonBoxes::tableCol) {    nsRuleWalker *ruleWalker = aData->mRuleWalker;    if (ruleWalker) {      ruleWalker->Forward(mTableColRule);    }  }  return NS_OK;}