mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #18036 - birtles:reject-easing-lists, r=hiro
Reject easings with trailing content in Servo_ParseEasing Servo side changes for [Gecko bug 1385141](https://bugzilla.mozilla.org/show_bug.cgi?id=1385141). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18036) <!-- Reviewable:end -->
This commit is contained in:
commit
62dfee5e03
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