mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update cssparser to 0.18
https://github.com/servo/rust-cssparser/pull/171
This commit is contained in:
parent
30d6d6024b
commit
eb98ae6e04
64 changed files with 541 additions and 512 deletions
|
@ -12,7 +12,7 @@
|
|||
use computed_values::{font_feature_settings, font_stretch, font_style, font_weight};
|
||||
use computed_values::font_family::FamilyName;
|
||||
use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser, Parser};
|
||||
use cssparser::{SourceLocation, CompactCowStr};
|
||||
use cssparser::{SourceLocation, CowRcStr};
|
||||
use error_reporting::ContextualParseError;
|
||||
#[cfg(feature = "gecko")] use gecko_bindings::structs::CSSFontFaceDescriptors;
|
||||
#[cfg(feature = "gecko")] use cssparser::UnicodeRange;
|
||||
|
@ -197,7 +197,7 @@ impl Parse for Source {
|
|||
let format_hints = if input.try(|input| input.expect_function_matching("format")).is_ok() {
|
||||
input.parse_nested_block(|input| {
|
||||
input.parse_comma_separated(|input| {
|
||||
Ok(input.expect_string()?.into_owned())
|
||||
Ok(input.expect_string()?.as_ref().to_owned())
|
||||
})
|
||||
})?
|
||||
} else {
|
||||
|
@ -275,7 +275,7 @@ macro_rules! font_face_descriptors_common {
|
|||
type Declaration = ();
|
||||
type Error = SelectorParseError<'i, StyleParseError<'i>>;
|
||||
|
||||
fn parse_value<'t>(&mut self, name: CompactCowStr<'i>, input: &mut Parser<'i, 't>)
|
||||
fn parse_value<'t>(&mut self, name: CowRcStr<'i>, input: &mut Parser<'i, 't>)
|
||||
-> Result<(), ParseError<'i>> {
|
||||
match_ignore_ascii_case! { &*name,
|
||||
$(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue