mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Remove aTag argument from nsICSSPseudoComparator::PseudoMatches. (Bug 576794) r=bzbarsky a2.0=bsmedberg
This commit is contained in:
parent
a710a36a06
commit
cdca710a52
@ -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));
|
||||
}
|
||||
|
@ -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___ */
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user