aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-02-12 01:45:58 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-02-12 01:45:58 +0530
commitb870aa90878acf97074fa55260beb8acfd125f22 (patch)
treed5ec6df2484444442f6c65a3e743c585dc3f4f86 /components/script/dom
parent5942e9e3cb2fb588eb82198fd5548a42303a559f (diff)
parenta1f0b39340039adf66f0cf2295b3602e29586df4 (diff)
downloadservo-b870aa90878acf97074fa55260beb8acfd125f22.tar.gz
servo-b870aa90878acf97074fa55260beb8acfd125f22.zip
Auto merge of #8987 - jdm:devtoolsreport, r=glennw
Report CSS errors to script task for further processing. This was a missing piece from #8838. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8987) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/window.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index c8ea1d9f0f8..cf449c3e26f 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -56,6 +56,7 @@ use rustc_serialize::base64::{FromBase64, STANDARD, ToBase64};
use script_thread::{DOMManipulationThreadSource, UserInteractionThreadSource, NetworkingThreadSource};
use script_thread::{HistoryTraversalThreadSource, FileReadingThreadSource, SendableMainThreadScriptChan};
use script_thread::{ScriptChan, ScriptPort, MainThreadScriptChan, MainThreadScriptMsg, RunnableWrapper};
+use script_traits::ConstellationControlMsg;
use script_traits::{DocumentState, MsDuration, ScriptToCompositorMsg, TimerEvent, TimerEventId};
use script_traits::{MozBrowserEvent, ScriptMsg as ConstellationMsg, TimerEventRequest, TimerSource};
use std::ascii::AsciiExt;
@@ -66,10 +67,10 @@ use std::default::Default;
use std::ffi::CString;
use std::io::{Write, stderr, stdout};
use std::rc::Rc;
-use std::sync::Arc;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::TryRecvError::{Disconnected, Empty};
use std::sync::mpsc::{Sender, channel};
+use std::sync::{Arc, Mutex};
use string_cache::Atom;
use style::context::ReflowGoal;
use style::error_reporting::ParseErrorReporter;
@@ -1304,6 +1305,7 @@ impl Window {
mem_profiler_chan: mem::ProfilerChan,
devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>,
constellation_chan: ConstellationChan<ConstellationMsg>,
+ control_chan: IpcSender<ConstellationControlMsg>,
scheduler_chan: IpcSender<TimerEventRequest>,
timer_event_chan: IpcSender<TimerEvent>,
layout_chan: LayoutChan,
@@ -1317,7 +1319,10 @@ impl Window {
lchan.send(Msg::GetRPC(rpc_send)).unwrap();
rpc_recv.recv().unwrap()
};
- let error_reporter = CSSErrorReporter { pipelineid: id };
+ let error_reporter = CSSErrorReporter {
+ pipelineid: id,
+ script_chan: Arc::new(Mutex::new(control_chan)),
+ };
let win = box Window {
eventtarget: EventTarget::new_inherited(),
script_chan: script_chan,