зеркало из https://github.com/mozilla/gecko-dev.git
Remove aTag argument from nsICSSPseudoComparator::PseudoMatches. (Bug 576794) r=bzbarsky a2.0=bsmedberg
This commit is contained in:
Родитель
a710a36a06
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче