mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Use the current parser location for CSS error
… rather than the start location of the current construct. This likely places the error just *after* of the unexpected token whereas before would be best, but that’s likely a much bigger change. See https://bugzilla.mozilla.org/show_bug.cgi?id=1378861
This commit is contained in:
parent
bc0903c928
commit
056e599562
10 changed files with 34 additions and 31 deletions
|
@ -125,7 +125,7 @@ pub fn parse_font_face_block<R>(context: &ParserContext,
|
|||
while let Some(declaration) = iter.next() {
|
||||
if let Err(err) = declaration {
|
||||
let error = ContextualParseError::UnsupportedFontFaceDescriptor(err.slice, err.error);
|
||||
context.log_css_error(error_context, err.location, error)
|
||||
context.log_css_error(error_context, iter.input.current_source_location(), error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue