mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
No issue - Move Has* function definition out of the header file for consistency
This commit is contained in:
parent
0b9698c80a
commit
03a3385702
2 changed files with 27 additions and 15 deletions
|
|
@ -109,6 +109,30 @@ nsCSSPseudoClasses::HasSingleSelectorArg(Type aType)
|
|||
aType == Type::hostContext;
|
||||
}
|
||||
|
||||
bool
|
||||
nsCSSPseudoClasses::HasForgivingSelectorListArg(Type aType)
|
||||
{
|
||||
return aType == Type::is ||
|
||||
aType == Type::matches ||
|
||||
aType == Type::any ||
|
||||
aType == Type::where;
|
||||
}
|
||||
|
||||
bool
|
||||
nsCSSPseudoClasses::HasSelectorListArg(Type aType)
|
||||
{
|
||||
return HasForgivingSelectorListArg(aType) ||
|
||||
aType == Type::mozAny ||
|
||||
aType == Type::host ||
|
||||
aType == Type::hostContext;
|
||||
}
|
||||
|
||||
bool
|
||||
nsCSSPseudoClasses::HasOptionalSelectorListArg(Type aType)
|
||||
{
|
||||
return aType == Type::host;
|
||||
}
|
||||
|
||||
void
|
||||
nsCSSPseudoClasses::PseudoTypeToString(Type aType, nsAString& aString)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue