Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reject easings with trailing content in Servo_ParseEasing
  • Loading branch information
birtles committed Aug 10, 2017
1 parent 8a48578 commit afa9b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/geckolib/glue.rs
Expand Up @@ -1975,7 +1975,8 @@ pub extern "C" fn Servo_ParseEasing(easing: *const nsAString,
let easing = unsafe { (*easing).to_string() };
let mut input = ParserInput::new(&easing);
let mut parser = Parser::new(&mut input);
let result = transition_timing_function::single_value::parse(&context, &mut parser);
let result =
parser.parse_entirely(|p| transition_timing_function::single_value::parse(&context, p));
match result {
Ok(parsed_easing) => {
*output = parsed_easing.into();
Expand Down

0 comments on commit afa9b98

Please sign in to comment.