Make log_css_error in parser.rs take a &ParserContext argument and call this method

This commit is contained in:
GauriGNaik 2015-11-07 20:14:57 -05:00 committed by Josh Matthews
parent a8cbc28643
commit afdc60fa57
5 changed files with 9 additions and 12 deletions

View file

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