mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55: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
|
@ -40,7 +40,7 @@ pub fn parse_font_face_block(context: &ParserContext, input: &mut Parser)
|
|||
let pos = range.start;
|
||||
let message = format!("Unsupported @font-face descriptor declaration: '{}'",
|
||||
iter.input.slice(range));
|
||||
log_css_error(iter.input, pos, &*message);
|
||||
log_css_error(iter.input, pos, &*message, context);
|
||||
}
|
||||
Ok(FontFaceDescriptorDeclaration::Family(value)) => {
|
||||
family = Some(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue