mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove unused Keyframe::parse method
This commit is contained in:
parent
24fbb26475
commit
901aaeaf68
1 changed files with 0 additions and 21 deletions
|
@ -73,27 +73,6 @@ pub struct Keyframe {
|
|||
pub declarations: Arc<Vec<PropertyDeclaration>>,
|
||||
}
|
||||
|
||||
impl Keyframe {
|
||||
pub fn parse(context: &ParserContext, input: &mut Parser) -> Result<Keyframe, ()> {
|
||||
let percentages = try!(input.parse_until_before(Delimiter::CurlyBracketBlock, |input| {
|
||||
input.parse_comma_separated(|input| KeyframePercentage::parse(input))
|
||||
}));
|
||||
let selector = KeyframeSelector(percentages);
|
||||
|
||||
try!(input.expect_curly_bracket_block());
|
||||
|
||||
let declarations = input.parse_nested_block(|input| {
|
||||
Ok(parse_property_declaration_list(context, input))
|
||||
}).unwrap();
|
||||
|
||||
// NB: Important declarations are explicitely ignored in the spec.
|
||||
Ok(Keyframe {
|
||||
selector: selector,
|
||||
declarations: declarations.normal,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/// A keyframes step value. This can be a synthetised keyframes animation, that
|
||||
/// is, one autogenerated from the current computed values, or a list of
|
||||
/// declarations to apply.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue