summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSPseudoClasses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/nsCSSPseudoClasses.cpp')
-rw-r--r--layout/style/nsCSSPseudoClasses.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/layout/style/nsCSSPseudoClasses.cpp b/layout/style/nsCSSPseudoClasses.cpp
index 0fc460a514..3c9bbf9bd3 100644
--- a/layout/style/nsCSSPseudoClasses.cpp
+++ b/layout/style/nsCSSPseudoClasses.cpp
@@ -106,7 +106,8 @@ bool
nsCSSPseudoClasses::HasSingleSelectorArg(Type aType)
{
return aType == Type::host ||
- aType == Type::hostContext;
+ aType == Type::hostContext ||
+ aType == Type::slotted;
}
bool
@@ -126,7 +127,8 @@ nsCSSPseudoClasses::HasSelectorListArg(Type aType)
aType == Type::mozAny ||
aType == Type::mozAnyPrivate ||
aType == Type::host ||
- aType == Type::hostContext;
+ aType == Type::hostContext ||
+ aType == Type::slotted;
}
bool
@@ -169,3 +171,9 @@ nsCSSPseudoClasses::IsUserActionPseudoClass(Type aType)
aType == Type::active ||
aType == Type::focus;
}
+
+/* static */ bool
+nsCSSPseudoClasses::IsHybridPseudoElement(Type aType)
+{
+ return aType == Type::slotted;
+}