Report CSS errors to script task for further processing.

This commit is contained in:
Josh Matthews 2015-12-15 12:59:10 -05:00
parent 3703e6d4f6
commit e6d906dbbf
7 changed files with 41 additions and 15 deletions

View file

@ -1785,6 +1785,7 @@ impl ScriptThread {
self.mem_profiler_chan.clone(),
self.devtools_chan.clone(),
self.constellation_chan.clone(),
self.control_chan.clone(),
self.scheduler_chan.clone(),
ipc_timer_event_chan,
incomplete.layout_chan,
@ -2207,7 +2208,7 @@ impl ScriptThread {
}
fn handle_css_error_reporting(&self, pipeline_id: PipelineId, filename: String,
line: u32, column: u32, msg: String) {
line: usize, column: usize, msg: String) {
let parent_page = self.root_page();
let page = match parent_page.find(pipeline_id) {
Some(page) => page,