mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Thread ParseError return values through CSS parsing.
This commit is contained in:
parent
58e39bfffa
commit
27ae1ef2e7
121 changed files with 2133 additions and 1505 deletions
|
@ -9,7 +9,7 @@ use msg::constellation_msg::PipelineId;
|
|||
use script_traits::ConstellationControlMsg;
|
||||
use servo_url::ServoUrl;
|
||||
use std::sync::{Mutex, Arc};
|
||||
use style::error_reporting::{ParseErrorReporter, ParseError};
|
||||
use style::error_reporting::{ParseErrorReporter, ContextualParseError};
|
||||
|
||||
#[derive(HeapSizeOf, Clone)]
|
||||
pub struct CSSErrorReporter {
|
||||
|
@ -25,7 +25,7 @@ impl ParseErrorReporter for CSSErrorReporter {
|
|||
fn report_error<'a>(&self,
|
||||
input: &mut Parser,
|
||||
position: SourcePosition,
|
||||
error: ParseError<'a>,
|
||||
error: ContextualParseError<'a>,
|
||||
url: &ServoUrl,
|
||||
line_number_offset: u64) {
|
||||
let location = input.source_location(position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue