mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -25,6 +25,7 @@ git = "https://github.com/servo/ipc-channel"
|
|||
path = "../plugins"
|
||||
|
||||
[dependencies]
|
||||
cssparser = { version = "0.4", features = [ "serde-serialization" ] }
|
||||
app_units = {version = "0.1", features = ["plugins"]}
|
||||
bitflags = "0.3"
|
||||
hyper = { version = "0.7", features = [ "serde-serialization" ] }
|
||||
|
|
|
@ -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