diff --git a/components/script/dom/cssrule.rs b/components/script/dom/cssrule.rs index cea98258786..1cd8c6c715f 100644 --- a/components/script/dom/cssrule.rs +++ b/components/script/dom/cssrule.rs @@ -106,6 +106,7 @@ impl CSSRule { StyleCssRule::LayerBlock(_) => unimplemented!(), // TODO StyleCssRule::LayerStatement(_) => unimplemented!(), // TODO StyleCssRule::FontPaletteValues(_) => unimplemented!(), // TODO + StyleCssRule::Property(_) => unimplemented!(), // TODO } } diff --git a/components/style/properties_and_values/rule.rs b/components/style/properties_and_values/rule.rs index 3392e68124b..916f7e93560 100644 --- a/components/style/properties_and_values/rule.rs +++ b/components/style/properties_and_values/rule.rs @@ -17,6 +17,7 @@ use cssparser::{ AtRuleParser, CowRcStr, DeclarationParser, ParseErrorKind, Parser, QualifiedRuleParser, RuleBodyItemParser, RuleBodyParser, SourceLocation, }; +#[cfg(feature = "gecko")] use malloc_size_of::{MallocSizeOf, MallocSizeOfOps}; use selectors::parser::SelectorParseErrorKind; use servo_arc::Arc; @@ -162,7 +163,6 @@ macro_rules! property_descriptors { } } -#[cfg(feature = "gecko")] property_descriptors! { /// "syntax" syntax: SyntaxDescriptor, diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs index f1bd4c13fe0..8aee0326538 100644 --- a/components/style/stylesheets/rule_parser.rs +++ b/components/style/stylesheets/rule_parser.rs @@ -5,6 +5,7 @@ //! Parsing of the stylesheet contents. use crate::counter_style::{parse_counter_style_body, parse_counter_style_name_definition}; +#[cfg(feature = "gecko")] use crate::custom_properties::parse_name as parse_custom_property_name; use crate::error_reporting::ContextualParseError; use crate::font_face::parse_font_face_block; @@ -32,7 +33,9 @@ use crate::stylesheets::{ }; use crate::values::computed::font::FamilyName; use crate::values::{CssUrl, CustomIdent, DashedIdent, KeyframesName}; -use crate::{Atom, Namespace, Prefix}; +#[cfg(feature = "gecko")] +use crate::Atom; +use crate::{Namespace, Prefix}; use cssparser::{ AtRuleParser, BasicParseError, BasicParseErrorKind, CowRcStr, DeclarationParser, Parser, ParserState, QualifiedRuleParser, RuleBodyItemParser, RuleBodyParser, SourceLocation, @@ -604,6 +607,7 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b, 'i> { input.try_parse(|i| PageSelectors::parse(self.context, i)).unwrap_or_default() ) }, + #[cfg(feature = "gecko")] "property" if static_prefs::pref!("layout.css.properties-and-values.enabled") => { let name = input.expect_ident_cloned()?; let name = parse_custom_property_name(&name).map_err(|_| {