mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Create error reporters linked to documents (bug 1352669)
This commit is contained in:
parent
4b91014b14
commit
a08371e8eb
19 changed files with 5536 additions and 4324 deletions
|
@ -139,7 +139,7 @@ impl<'a> ContextualParseError<'a> {
|
|||
}
|
||||
|
||||
/// A generic trait for an error reporter.
|
||||
pub trait ParseErrorReporter : Sync {
|
||||
pub trait ParseErrorReporter {
|
||||
/// Called when the style engine detects an error.
|
||||
///
|
||||
/// Returns the current input being parsed, the source position it was
|
||||
|
@ -188,8 +188,3 @@ impl ParseErrorReporter for NullReporter {
|
|||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
/// Create an instance of the default error reporter.
|
||||
pub fn create_error_reporter() -> RustLogReporter {
|
||||
RustLogReporter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue