mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Make log_css_error in parser.rs take a &ParserContext argument and call this method
This commit is contained in:
parent
a8cbc28643
commit
afdc60fa57
5 changed files with 9 additions and 12 deletions
|
@ -271,7 +271,7 @@ impl ViewportRule {
|
|||
let pos = range.start;
|
||||
let message = format!("Unsupported @viewport descriptor declaration: '{}'",
|
||||
input.slice(range));
|
||||
log_css_error(input, pos, &*message);
|
||||
log_css_error(input, pos, &*message, &context);
|
||||
}
|
||||
|
||||
Ok(ViewportRule { declarations: valid_declarations.iter().cascade() })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue