css: follow-up Issue #2112 of Servo removal

This commit is contained in:
roytam1 2024-04-02 23:12:59 +08:00
commit 1577c24777

View file

@ -59,12 +59,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);
@ -83,10 +77,6 @@ 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);