зеркало из https://github.com/mozilla/gecko-dev.git
Bug 602341 part 4. Drop the nsIAtom arguments to AddPSeudoClass. r=dbaron
This commit is contained in:
Родитель
8cdfaea14d
Коммит
7f04a7d94e
|
@ -411,28 +411,24 @@ void nsCSSSelector::AddClass(const nsString& aClass)
|
|||
}
|
||||
}
|
||||
|
||||
void nsCSSSelector::AddPseudoClass(nsIAtom* aPseudoClass,
|
||||
nsCSSPseudoClasses::Type aType)
|
||||
void nsCSSSelector::AddPseudoClass(nsCSSPseudoClasses::Type aType)
|
||||
{
|
||||
AddPseudoClassInternal(new nsPseudoClassList(aType));
|
||||
}
|
||||
|
||||
void nsCSSSelector::AddPseudoClass(nsIAtom* aPseudoClass,
|
||||
nsCSSPseudoClasses::Type aType,
|
||||
void nsCSSSelector::AddPseudoClass(nsCSSPseudoClasses::Type aType,
|
||||
const PRUnichar* aString)
|
||||
{
|
||||
AddPseudoClassInternal(new nsPseudoClassList(aType, aString));
|
||||
}
|
||||
|
||||
void nsCSSSelector::AddPseudoClass(nsIAtom* aPseudoClass,
|
||||
nsCSSPseudoClasses::Type aType,
|
||||
void nsCSSSelector::AddPseudoClass(nsCSSPseudoClasses::Type aType,
|
||||
const PRInt32* aIntPair)
|
||||
{
|
||||
AddPseudoClassInternal(new nsPseudoClassList(aType, aIntPair));
|
||||
}
|
||||
|
||||
void nsCSSSelector::AddPseudoClass(nsIAtom* aPseudoClass,
|
||||
nsCSSPseudoClasses::Type aType,
|
||||
void nsCSSSelector::AddPseudoClass(nsCSSPseudoClasses::Type aType,
|
||||
nsCSSSelectorList* aSelectorList)
|
||||
{
|
||||
// Take ownership of nsCSSSelectorList instead of copying.
|
||||
|
|
|
@ -165,13 +165,11 @@ public:
|
|||
void SetTag(const nsString& aTag);
|
||||
void AddID(const nsString& aID);
|
||||
void AddClass(const nsString& aClass);
|
||||
void AddPseudoClass(nsIAtom* aPseudoClass, nsCSSPseudoClasses::Type aType);
|
||||
void AddPseudoClass(nsIAtom* aPseudoClass, nsCSSPseudoClasses::Type aType,
|
||||
const PRUnichar* aString);
|
||||
void AddPseudoClass(nsIAtom* aPseudoClass, nsCSSPseudoClasses::Type aType,
|
||||
const PRInt32* aIntPair);
|
||||
void AddPseudoClass(nsCSSPseudoClasses::Type aType);
|
||||
void AddPseudoClass(nsCSSPseudoClasses::Type aType, const PRUnichar* aString);
|
||||
void AddPseudoClass(nsCSSPseudoClasses::Type aType, const PRInt32* aIntPair);
|
||||
// takes ownership of aSelectorList
|
||||
void AddPseudoClass(nsIAtom* aPseudoClass, nsCSSPseudoClasses::Type aType,
|
||||
void AddPseudoClass(nsCSSPseudoClasses::Type aType,
|
||||
nsCSSSelectorList* aSelectorList);
|
||||
void AddAttribute(PRInt32 aNameSpace, const nsString& aAttr);
|
||||
void AddAttribute(PRInt32 aNameSpace, const nsString& aAttr, PRUint8 aFunc,
|
||||
|
|
|
@ -3110,7 +3110,7 @@ CSSParserImpl::ParsePseudoSelector(PRInt32& aDataMask,
|
|||
}
|
||||
}
|
||||
else {
|
||||
aSelector.AddPseudoClass(pseudo, pseudoClassType);
|
||||
aSelector.AddPseudoClass(pseudoClassType);
|
||||
}
|
||||
}
|
||||
else if (isPseudoElement || isAnonBox) {
|
||||
|
@ -3291,7 +3291,7 @@ CSSParserImpl::ParsePseudoClassWithIdentArg(nsCSSSelector& aSelector,
|
|||
}
|
||||
|
||||
// Add the pseudo with the language parameter
|
||||
aSelector.AddPseudoClass(aPseudo, aType, mToken.mIdent.get());
|
||||
aSelector.AddPseudoClass(aType, mToken.mIdent.get());
|
||||
|
||||
// close the parenthesis
|
||||
if (!ExpectSymbol(')', PR_TRUE)) {
|
||||
|
@ -3417,7 +3417,7 @@ CSSParserImpl::ParsePseudoClassWithNthPairArg(nsCSSSelector& aSelector,
|
|||
REPORT_UNEXPECTED_TOKEN(PEPseudoClassNoClose);
|
||||
return eSelectorParsingStatus_Error; // our caller calls SkipUntil(')')
|
||||
}
|
||||
aSelector.AddPseudoClass(aPseudo, aType, numbers);
|
||||
aSelector.AddPseudoClass(aType, numbers);
|
||||
return eSelectorParsingStatus_Continue;
|
||||
}
|
||||
|
||||
|
@ -3446,7 +3446,7 @@ CSSParserImpl::ParsePseudoClassWithSelectorListArg(nsCSSSelector& aSelector,
|
|||
}
|
||||
|
||||
// Add the pseudo with the selector list parameter
|
||||
aSelector.AddPseudoClass(aPseudo, aType, slist.forget());
|
||||
aSelector.AddPseudoClass(aType, slist.forget());
|
||||
|
||||
// close the parenthesis
|
||||
if (!ExpectSymbol(')', PR_TRUE)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче