Add pipeline information to CSS error reporting.

This commit is contained in:
GauriGNaik 2015-12-04 19:19:21 -05:00 committed by Josh Matthews
parent 6032f8225b
commit fc81276c8e
27 changed files with 103 additions and 29 deletions

View file

@ -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" ] }

View file

@ -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;
}