mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update to cssparser 0.22 (source location in error types)
This commit is contained in:
parent
056e599562
commit
c0f8f15f39
90 changed files with 974 additions and 790 deletions
|
@ -394,8 +394,8 @@ impl Stylesheet {
|
|||
break;
|
||||
}
|
||||
},
|
||||
Err(err) => {
|
||||
let error = ContextualParseError::InvalidRule(err.slice, err.error);
|
||||
Err((error, slice)) => {
|
||||
let error = ContextualParseError::InvalidRule(slice, error);
|
||||
let location = iter.input.current_source_location();
|
||||
iter.parser.context.log_css_error(&iter.parser.error_context,
|
||||
location, error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue