|
@@ -0,0 +1,37 @@
|
|
|
+--- firefox-129.0.2.orig/servo/components/style_traits/values.rs 2024-08-19 21:21:51.000000000 +0200
|
|
|
++++ firefox-129.0.2/servo/components/style_traits/values.rs 2024-09-08 06:18:31.271680673 +0200
|
|
|
+@@ -388,11 +388,11 @@ impl Separator for Space {
|
|
|
+ where
|
|
|
+ F: for<'tt> FnMut(&mut Parser<'i, 'tt>) -> Result<T, ParseError<'i, E>>,
|
|
|
+ {
|
|
|
+- input.skip_whitespace(); // Unnecessary for correctness, but may help try() rewind less.
|
|
|
++ input.skip_whitespace(); // Unnecessary for correctness, but may help try_parse() rewind less.
|
|
|
+ let mut results = vec![parse_one(input)?];
|
|
|
+ loop {
|
|
|
+- input.skip_whitespace(); // Unnecessary for correctness, but may help try() rewind less.
|
|
|
+- if let Ok(item) = input.try(&mut parse_one) {
|
|
|
++ input.skip_whitespace(); // Unnecessary for correctness, but may help try_parse() rewind less.
|
|
|
++ if let Ok(item) = input.try_parse(&mut parse_one) {
|
|
|
+ results.push(item);
|
|
|
+ } else {
|
|
|
+ return Ok(results);
|
|
|
+@@ -413,14 +413,14 @@ impl Separator for CommaWithSpace {
|
|
|
+ where
|
|
|
+ F: for<'tt> FnMut(&mut Parser<'i, 'tt>) -> Result<T, ParseError<'i, E>>,
|
|
|
+ {
|
|
|
+- input.skip_whitespace(); // Unnecessary for correctness, but may help try() rewind less.
|
|
|
++ input.skip_whitespace(); // Unnecessary for correctness, but may help try_parse() rewind less.
|
|
|
+ let mut results = vec![parse_one(input)?];
|
|
|
+ loop {
|
|
|
+- input.skip_whitespace(); // Unnecessary for correctness, but may help try() rewind less.
|
|
|
++ input.skip_whitespace(); // Unnecessary for correctness, but may help try_parse() rewind less.
|
|
|
+ let comma_location = input.current_source_location();
|
|
|
+- let comma = input.try(|i| i.expect_comma()).is_ok();
|
|
|
+- input.skip_whitespace(); // Unnecessary for correctness, but may help try() rewind less.
|
|
|
+- if let Ok(item) = input.try(&mut parse_one) {
|
|
|
++ let comma = input.try_parse(|i| i.expect_comma()).is_ok();
|
|
|
++ input.skip_whitespace(); // Unnecessary for correctness, but may help try_parse() rewind less.
|
|
|
++ if let Ok(item) = input.try_parse(&mut parse_one) {
|
|
|
+ results.push(item);
|
|
|
+ } else if comma {
|
|
|
+ return Err(comma_location.new_unexpected_token_error(Token::Comma));
|