diff options
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r-- | components/style/parser.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs index 8570bc777d1..40756638065 100644 --- a/components/style/parser.rs +++ b/components/style/parser.rs @@ -43,10 +43,6 @@ impl<'a> ParserContext<'a> { /// Defaults to a no-op. /// Set a `RUST_LOG=style::errors` environment variable /// to log CSS parse errors to stderr. -pub fn log_css_error(input: &mut Parser, position: SourcePosition, message: &str) { - if log_enabled!(log::LogLevel::Info) { - let location = input.source_location(position); - // TODO eventually this will got into a "web console" or something. - info!("{}:{} {}", location.line, location.column, message) - } +pub fn log_css_error(input: &mut Parser, position: SourcePosition, message: &str, parsercontext: &ParserContext) { + parsercontext.error_reporter.report_error(input, position, message); } |