mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Add pipeline information to CSS error reporting.
This commit is contained in:
parent
6032f8225b
commit
fc81276c8e
27 changed files with 103 additions and 29 deletions
|
@ -11,6 +11,7 @@ extern crate azure;
|
|||
extern crate bitflags;
|
||||
#[cfg(target_os = "macos")]
|
||||
extern crate core_foundation;
|
||||
extern crate cssparser;
|
||||
extern crate euclid;
|
||||
extern crate hyper;
|
||||
#[cfg(target_os = "macos")]
|
||||
|
@ -25,3 +26,12 @@ extern crate util;
|
|||
pub mod compositor_msg;
|
||||
pub mod constellation_msg;
|
||||
pub mod webdriver_msg;
|
||||
|
||||
use constellation_msg::PipelineId;
|
||||
use cssparser::{Parser, SourcePosition};
|
||||
|
||||
pub trait ParseErrorReporter {
|
||||
fn report_error(&self, input: &mut Parser, position: SourcePosition, message: &str);
|
||||
fn clone(&self) -> Box<ParseErrorReporter + Send + Sync>;
|
||||
fn pipeline(&self) -> PipelineId;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue