mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Further changes required by Servo
This commit is contained in:
parent
9c46eabe83
commit
8d2ae3f1c5
3 changed files with 7 additions and 2 deletions
|
@ -106,6 +106,7 @@ impl CSSRule {
|
|||
StyleCssRule::LayerBlock(_) => unimplemented!(), // TODO
|
||||
StyleCssRule::LayerStatement(_) => unimplemented!(), // TODO
|
||||
StyleCssRule::FontPaletteValues(_) => unimplemented!(), // TODO
|
||||
StyleCssRule::Property(_) => unimplemented!(), // TODO
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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! {
|
||||
/// <https://drafts.css-houdini.org/css-properties-values-api-1/#the-syntax-descriptor>
|
||||
"syntax" syntax: SyntaxDescriptor,
|
||||
|
|
|
@ -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(|_| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue