mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Cherry-pick various servo changes
All formatting and not-part-of-the-gecko-build changes. Differential Revision: https://phabricator.services.mozilla.com/D106634
This commit is contained in:
parent
c5d31c3ab6
commit
efea71ff9b
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ use crate::values::specified::Attr;
|
||||||
use crate::values::specified::Integer;
|
use crate::values::specified::Integer;
|
||||||
use crate::values::CustomIdent;
|
use crate::values::CustomIdent;
|
||||||
use cssparser::{Parser, Token};
|
use cssparser::{Parser, Token};
|
||||||
#[cfg(feature = "servo-layout-2013")]
|
#[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
|
||||||
use selectors::parser::SelectorParseErrorKind;
|
use selectors::parser::SelectorParseErrorKind;
|
||||||
use style_traits::{ParseError, StyleParseErrorKind};
|
use style_traits::{ParseError, StyleParseErrorKind};
|
||||||
|
|
||||||
|
@ -171,6 +171,7 @@ impl Parse for Content {
|
||||||
Ok(generics::ContentItem::Attr(Attr::parse_function(context, input)?))
|
Ok(generics::ContentItem::Attr(Attr::parse_function(context, input)?))
|
||||||
}),
|
}),
|
||||||
_ => {
|
_ => {
|
||||||
|
use style_traits::StyleParseErrorKind;
|
||||||
let name = name.clone();
|
let name = name.clone();
|
||||||
return Err(input.new_custom_error(
|
return Err(input.new_custom_error(
|
||||||
StyleParseErrorKind::UnexpectedFunction(name),
|
StyleParseErrorKind::UnexpectedFunction(name),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue