зеркало из https://github.com/mozilla/pjs.git
DeCOMtaminate nsICSSPseudoComparator::PseudoMatches method signature. (Bug 576794) r=bzbarsky a2.0=bsmedberg
This commit is contained in:
Родитель
64a48c5362
Коммит
407875a797
|
@ -2395,10 +2395,7 @@ nsCSSRuleProcessor::RulesMatching(XULTreeRuleProcessorData* aData)
|
|||
nsTArray<RuleValue>& rules = entry->mRules;
|
||||
for (RuleValue *value = rules.Elements(), *end = value + rules.Length();
|
||||
value != end; ++value) {
|
||||
PRBool matches = PR_TRUE;
|
||||
aData->mComparator->PseudoMatches(aData->mPseudoTag, value->mSelector,
|
||||
&matches);
|
||||
if (matches) {
|
||||
if (aData->mComparator->PseudoMatches(aData->mPseudoTag, value->mSelector)) {
|
||||
ContentEnumFunc(value->mRule, value->mSelector->mNext,
|
||||
static_cast<RuleProcessorData*>(aData));
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ class nsICSSPseudoComparator
|
|||
public:
|
||||
NS_DECL_QUERYFRAME_TARGET(nsICSSPseudoComparator)
|
||||
|
||||
NS_IMETHOD PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector, PRBool* aResult)=0;
|
||||
virtual PRBool PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector)=0;
|
||||
};
|
||||
|
||||
#endif /* nsICSSPseudoComparator_h___ */
|
||||
|
|
|
@ -4201,8 +4201,8 @@ nsTreeBodyFrame::GetPseudoStyleContext(nsIAtom* aPseudoElement)
|
|||
}
|
||||
|
||||
// Our comparator for resolving our complex pseudos
|
||||
NS_IMETHODIMP
|
||||
nsTreeBodyFrame::PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector, PRBool* aResult)
|
||||
PRBool
|
||||
nsTreeBodyFrame::PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(aSelector->mLowercaseTag == aTag,
|
||||
"should not have been called");
|
||||
|
@ -4215,13 +4215,11 @@ nsTreeBodyFrame::PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector, PRBool*
|
|||
PRInt32 index;
|
||||
mScratchArray->GetIndexOf(curr->mAtom, &index);
|
||||
if (index == -1) {
|
||||
*aResult = PR_FALSE;
|
||||
return NS_OK;
|
||||
return PR_FALSE;
|
||||
}
|
||||
curr = curr->mNext;
|
||||
}
|
||||
*aResult = PR_TRUE;
|
||||
return NS_OK;
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
nsIContent*
|
||||
|
|
|
@ -143,7 +143,7 @@ public:
|
|||
virtual void ReflowCallbackCanceled();
|
||||
|
||||
// nsICSSPseudoComparator
|
||||
NS_IMETHOD PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector, PRBool* aResult);
|
||||
virtual PRBool PseudoMatches(nsIAtom* aTag, nsCSSSelector* aSelector);
|
||||
|
||||
// nsIScrollbarMediator
|
||||
NS_IMETHOD PositionChanged(nsIScrollbarFrame* aScrollbar, PRInt32 aOldIndex, PRInt32& aNewIndex);
|
||||
|
|
Загрузка…
Ссылка в новой задаче