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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/layout/style/nsCSSPseudoClasses.cpp b/layout/style/nsCSSPseudoClasses.cpp
index 23517ef52c..0fc460a514 100644
--- a/layout/style/nsCSSPseudoClasses.cpp
+++ b/layout/style/nsCSSPseudoClasses.cpp
@@ -122,7 +122,9 @@ bool
nsCSSPseudoClasses::HasSelectorListArg(Type aType)
{
return HasForgivingSelectorListArg(aType) ||
+ aType == Type::negation ||
aType == Type::mozAny ||
+ aType == Type::mozAnyPrivate ||
aType == Type::host ||
aType == Type::hostContext;
}
@@ -133,6 +135,12 @@ nsCSSPseudoClasses::HasOptionalSelectorListArg(Type aType)
return aType == Type::host;
}
+bool
+nsCSSPseudoClasses::IsHiddenFromSerialization(Type aType)
+{
+ return aType == Type::mozAnyPrivate;
+}
+
void
nsCSSPseudoClasses::PseudoTypeToString(Type aType, nsAString& aString)
{