mirror of
https://github.com/servo/servo.git
synced 2025-07-16 11:53:39 +01:00
Reject easings with trailing content in Servo_ParseEasing
This commit is contained in:
parent
8a48578a26
commit
afa9b98f35
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue