Remove aTag argument from nsICSSPseudoComparator::PseudoMatches. (Bug 576794) r=bzbarsky a2.0=bsmedberg

This commit is contained in:
Craig Topper 2010-07-30 16:48:57 -07:00
parent a710a36a06
commit cdca710a52
4 changed files with 4 additions and 6 deletions

View File

@ -2395,7 +2395,7 @@ nsCSSRuleProcessor::RulesMatching(XULTreeRuleProcessorData* aData)
nsTArray<RuleValue>& rules = entry->mRules;
for (RuleValue *value = rules.Elements(), *end = value + rules.Length();
value != end; ++value) {
if (aData->mComparator->PseudoMatches(aData->mPseudoTag, value->mSelector)) {
if (aData->mComparator->PseudoMatches(value->mSelector)) {
ContentEnumFunc(value->mRule, value->mSelector->mNext,
static_cast<RuleProcessorData*>(aData));
}

View File

@ -46,7 +46,7 @@ struct nsCSSSelector;
class nsICSSPseudoComparator
{
public:
virtual PRBool PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector)=0;
virtual PRBool PseudoMatches(nsCSSSelector* aSelector)=0;
};
#endif /* nsICSSPseudoComparator_h___ */

View File

@ -4201,10 +4201,8 @@ nsTreeBodyFrame::GetPseudoStyleContext(nsIAtom* aPseudoElement)
// Our comparator for resolving our complex pseudos
PRBool
nsTreeBodyFrame::PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector)
nsTreeBodyFrame::PseudoMatches(nsCSSSelector* aSelector)
{
NS_ABORT_IF_FALSE(aSelector->mLowercaseTag == aTag,
"should not have been called");
// Iterate the pseudoclass list. For each item in the list, see if
// it is contained in our scratch array. If we have a miss, then
// we aren't a match. If all items in the pseudoclass list are

View File

@ -143,7 +143,7 @@ public:
virtual void ReflowCallbackCanceled();
// nsICSSPseudoComparator
virtual PRBool PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector);
virtual PRBool PseudoMatches(nsCSSSelector* aSelector);
// nsIScrollbarMediator
NS_IMETHOD PositionChanged(nsIScrollbarFrame* aScrollbar, PRInt32 aOldIndex, PRInt32& aNewIndex);