Skip to content
Permalink
Browse files

Reject easings with trailing content in Servo_ParseEasing

  • Loading branch information
birtles committed Aug 10, 2017
1 parent 8a48578 commit afa9b98f354b94f19f6b9cb6f0818f01698900c1
Showing with 2 additions and 1 deletion.
  1. +2 −1 ports/geckolib/glue.rs
@@ -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();

0 comments on commit afa9b98

Please sign in to comment.
You can’t perform that action at this time.