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:
bors-servo 2017-08-10 19:48:34 -05:00 committed by GitHub
commit 62dfee5e03

View file

@ -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();