mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Use more compact and ffi-friendly types for some svg props.
No functional change yet. Differential Revision: https://phabricator.services.mozilla.com/D36805
This commit is contained in:
parent
a0df9f76de
commit
f0b5d02901
4 changed files with 16 additions and 14 deletions
|
@ -80,14 +80,14 @@ impl Parse for SVGStrokeDashArray {
|
|||
NonNegativeLengthPercentage::parse_quirky(context, i, AllowQuirks::Always)
|
||||
})
|
||||
}) {
|
||||
return Ok(generic::SVGStrokeDashArray::Values(values));
|
||||
return Ok(generic::SVGStrokeDashArray::Values(values.into()));
|
||||
}
|
||||
|
||||
try_match_ident_ignore_ascii_case! { input,
|
||||
"context-value" if is_context_value_enabled() => {
|
||||
Ok(generic::SVGStrokeDashArray::ContextValue)
|
||||
},
|
||||
"none" => Ok(generic::SVGStrokeDashArray::Values(vec![])),
|
||||
"none" => Ok(generic::SVGStrokeDashArray::Values(Default::default())),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue