mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix try_parse_one macro and parse function of TransitionTimingFunction
This commit is contained in:
parent
e2f94d137a
commit
96cf81ad5d
2 changed files with 2 additions and 9 deletions
|
@ -557,13 +557,6 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
|
|||
Steps(u32, StartEnd),
|
||||
}
|
||||
|
||||
impl TransitionTimingFunction {
|
||||
pub fn parse(context: &ParserContext, input: &mut ::cssparser::Parser) ->
|
||||
Result<super::TransitionTimingFunction, ()> {
|
||||
super::TransitionTimingFunction::parse(context, input)
|
||||
}
|
||||
}
|
||||
|
||||
impl ToCss for TransitionTimingFunction {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
match *self {
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
macro_rules! try_parse_one {
|
||||
($input: expr, $var: ident, $prop_module: ident) => {
|
||||
if $var.is_none() {
|
||||
if let Ok(value) = $input.try($prop_module::computed_value::SingleComputedValue::parse) {
|
||||
if let Ok(value) = $input.try($prop_module::SingleSpecifiedValue::parse) {
|
||||
$var = Some(value);
|
||||
continue;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ macro_rules! try_parse_one {
|
|||
($context: expr, $input: expr, $var: ident, $prop_module: ident) => {
|
||||
if $var.is_none() {
|
||||
if let Ok(value) = $input.try(|i| {
|
||||
$prop_module::computed_value::SingleComputedValue::parse($context, i)
|
||||
$prop_module::SingleSpecifiedValue::parse($context, i)
|
||||
}) {
|
||||
$var = Some(value);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue