mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 21:37:32 +09:00
css: follow-up Issue #2112 of Servo removal
This commit is contained in:
parent
a944026bae
commit
1577c24777
1 changed files with 0 additions and 10 deletions
|
|
@ -59,12 +59,6 @@ CSS::Supports(const GlobalObject& aGlobal,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.mStyleBackendType == StyleBackendType::Servo) {
|
|
||||||
NS_ConvertUTF16toUTF8 property(aProperty);
|
|
||||||
NS_ConvertUTF16toUTF8 value(aValue);
|
|
||||||
return Servo_CSSSupports(&property, &value);
|
|
||||||
}
|
|
||||||
|
|
||||||
nsCSSParser parser;
|
nsCSSParser parser;
|
||||||
return parser.EvaluateSupportsDeclaration(aProperty, aValue, info.mDocURI,
|
return parser.EvaluateSupportsDeclaration(aProperty, aValue, info.mDocURI,
|
||||||
info.mBaseURI, info.mPrincipal);
|
info.mBaseURI, info.mPrincipal);
|
||||||
|
|
@ -83,10 +77,6 @@ CSS::Supports(const GlobalObject& aGlobal,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.mStyleBackendType == StyleBackendType::Servo) {
|
|
||||||
MOZ_CRASH("stylo: CSS.supports() with arguments is not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
nsCSSParser parser;
|
nsCSSParser parser;
|
||||||
return parser.EvaluateSupportsCondition(aCondition, info.mDocURI,
|
return parser.EvaluateSupportsCondition(aCondition, info.mDocURI,
|
||||||
info.mBaseURI, info.mPrincipal);
|
info.mBaseURI, info.mPrincipal);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue