diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-02-28 16:42:19 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:31:18 +0200 |
commit | 3e53962b2502cdb19790519c7ec82c499d248cc1 (patch) | |
tree | 1f67f88088a620dc14c24d34b49a7614426af135 /components/script/dom/documentorshadowroot.rs | |
parent | 3e63655018e07c1d4a3aa1c4252290fbe482a7f8 (diff) | |
download | servo-3e53962b2502cdb19790519c7ec82c499d248cc1.tar.gz servo-3e53962b2502cdb19790519c7ec82c499d248cc1.zip |
Do not send RemoveStyleSheet message for shadow roots
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r-- | components/script/dom/documentorshadowroot.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs index 51846baa443..27d52e086c6 100644 --- a/components/script/dom/documentorshadowroot.rs +++ b/components/script/dom/documentorshadowroot.rs @@ -13,7 +13,7 @@ use crate::dom::node; use crate::dom::window::Window; use euclid::Point2D; use js::jsapi::JS_GetRuntime; -use script_layout_interface::message::{Msg, NodesFromPointQueryType, QueryMsg}; +use script_layout_interface::message::{NodesFromPointQueryType, QueryMsg}; use script_traits::UntrustedNodeAddress; use servo_arc::Arc; use std::fmt; @@ -216,11 +216,6 @@ impl DocumentOrShadowRoot { s: &Arc<Stylesheet>, stylesheets: &mut StylesheetSet<StyleSheetInDocument>, ) { - self.window - .layout_chan() - .send(Msg::RemoveStylesheet(s.clone())) - .unwrap(); - let guard = s.shared_lock.read(); // FIXME(emilio): Would be nice to remove the clone, etc. |