summaryrefslogtreecommitdiff
path: root/layout/style/CSS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/CSS.cpp')
-rw-r--r--layout/style/CSS.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/layout/style/CSS.cpp b/layout/style/CSS.cpp
index b70f67a505..1078945ee5 100644
--- a/layout/style/CSS.cpp
+++ b/layout/style/CSS.cpp
@@ -62,12 +62,6 @@ CSS::Supports(const GlobalObject& aGlobal,
return false;
}
- if (info.mStyleBackendType == StyleBackendType::Servo) {
- NS_ConvertUTF16toUTF8 property(aProperty);
- NS_ConvertUTF16toUTF8 value(aValue);
- return Servo_CSSSupports(&property, &value);
- }
-
nsCSSParser parser;
return parser.EvaluateSupportsDeclaration(aProperty, aValue, info.mDocURI,
info.mBaseURI, info.mPrincipal);
@@ -86,13 +80,10 @@ CSS::Supports(const GlobalObject& aGlobal,
return false;
}
- if (info.mStyleBackendType == StyleBackendType::Servo) {
- MOZ_CRASH("stylo: CSS.supports() with arguments is not yet implemented");
- }
-
nsCSSParser parser;
return parser.EvaluateSupportsCondition(aCondition, info.mDocURI,
- info.mBaseURI, info.mPrincipal);
+ info.mBaseURI, info.mPrincipal,
+ css::SupportsParsingSettings::ImpliedParentheses);
}
/* static */ void