mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Further changes required by Servo
This commit is contained in:
parent
1003d644aa
commit
16cfd01823
2 changed files with 8 additions and 3 deletions
|
@ -30,14 +30,14 @@ pub enum FeatureType {
|
|||
impl FeatureType {
|
||||
fn features(&self) -> &'static [QueryFeatureDescription] {
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::gecko::media_features::MEDIA_FEATURES;
|
||||
let media_features = &crate::gecko::media_features::MEDIA_FEATURES;
|
||||
#[cfg(feature = "servo")]
|
||||
use crate::servo::media_queries::MEDIA_FEATURES;
|
||||
let media_features = &*crate::servo::media_queries::MEDIA_FEATURES;
|
||||
|
||||
use crate::stylesheets::container_rule::CONTAINER_FEATURES;
|
||||
|
||||
match *self {
|
||||
FeatureType::Media => &MEDIA_FEATURES,
|
||||
FeatureType::Media => media_features,
|
||||
FeatureType::Container => &CONTAINER_FEATURES,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue