mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Remove useless conditional compilation.
Servo doesn't use this flag or -webkit- prefixed media queries, so no point in doing this conditionally. Differential Revision: https://phabricator.services.mozilla.com/D49508
This commit is contained in:
parent
70dda74b0f
commit
11c1317c37
1 changed files with 3 additions and 6 deletions
|
@ -303,12 +303,9 @@ impl MediaFeatureExpression {
|
|||
let result = {
|
||||
let mut feature_name = &**ident;
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
{
|
||||
if starts_with_ignore_ascii_case(feature_name, "-webkit-") {
|
||||
feature_name = &feature_name[8..];
|
||||
requirements.insert(ParsingRequirements::WEBKIT_PREFIX);
|
||||
}
|
||||
if starts_with_ignore_ascii_case(feature_name, "-webkit-") {
|
||||
feature_name = &feature_name[8..];
|
||||
requirements.insert(ParsingRequirements::WEBKIT_PREFIX);
|
||||
}
|
||||
|
||||
let range = if starts_with_ignore_ascii_case(feature_name, "min-") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue