diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 748b6fc63e4..687dd32e1df 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -130,7 +130,7 @@ use time::{get_time, precise_time_ns, Tm}; use url::Position; use url::percent_encoding::percent_decode; use webdriver_handlers; -use webrender_api::DocumentId; +use webrender_api::{DocumentId, RenderApiSender}; use webvr_traits::{WebVREvent, WebVRMsg}; pub type ImageCacheMsg = (PipelineId, PendingImageResponse); @@ -591,6 +591,9 @@ pub struct ScriptThread { /// The Webrender Document ID associated with this thread. webrender_document: DocumentId, + + /// FIXME(victor): + webrender_api_sender: RenderApiSender, } /// In the event of thread panic, all data on the stack runs its destructor. However, there @@ -1063,6 +1066,7 @@ impl ScriptThread { custom_element_reaction_stack: CustomElementReactionStack::new(), webrender_document: state.webrender_document, + webrender_api_sender: state.webrender_api_sender, } } @@ -2584,6 +2588,7 @@ impl ScriptThread { self.webvr_chan.clone(), self.microtask_queue.clone(), self.webrender_document, + self.webrender_api_sender.clone(), ); // Initialize the browsing context for the window. |