summaryrefslogtreecommitdiffstats
path: root/servo/components/style/gecko/media_features.rs
diff options
context:
space:
mode:
Diffstat (limited to 'servo/components/style/gecko/media_features.rs')
-rw-r--r--servo/components/style/gecko/media_features.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/servo/components/style/gecko/media_features.rs b/servo/components/style/gecko/media_features.rs
index c9ad30b28b..8de45d95c2 100644
--- a/servo/components/style/gecko/media_features.rs
+++ b/servo/components/style/gecko/media_features.rs
@@ -169,8 +169,7 @@ fn eval_color_gamut(context: &Context, query_value: Option<ColorGamut>) -> bool
// Match if our color gamut is at least as wide as the query value
query_value <=
match color_gamut {
- // EndGuard_ is not a valid color gamut, so the default color-gamut is used.
- ScreenColorGamut::Srgb | ScreenColorGamut::EndGuard_ => ColorGamut::Srgb,
+ ScreenColorGamut::Srgb => ColorGamut::Srgb,
ScreenColorGamut::P3 => ColorGamut::P3,
ScreenColorGamut::Rec2020 => ColorGamut::Rec2020,
}
@@ -566,6 +565,8 @@ pub enum Platform {
/// platforms and they already use the "linux" string elsewhere (e.g.,
/// toolkit/themes/linux).
Linux,
+ /// Matches any iOS version.
+ Ios,
/// Matches any macOS version.
Macos,
/// Matches any Windows version.