aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-04-04 09:35:34 -0400
committerGitHub <noreply@github.com>2020-04-04 09:35:34 -0400
commitd64f7d427a8dc56bbfc92183f57588e7eb1d56c2 (patch)
tree5f07578a53872c2d23da16f2d052cda7ff4ef1e4 /components/script/script_thread.rs
parent9972aee81f0e80d34157325a5e13b3b1a7ef417a (diff)
parent185a402d9cc41d3e680b99564f5fc8b519ecf129 (diff)
downloadservo-d64f7d427a8dc56bbfc92183f57588e7eb1d56c2.tar.gz
servo-d64f7d427a8dc56bbfc92183f57588e7eb1d56c2.zip
Auto merge of #26105 - servo:layout-2020-less-opaque, r=emilio
Make DOM own the style and layout data, in an UnsafeCell
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 714c6857d9c..d6a8481afb3 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -822,23 +822,6 @@ impl ScriptThreadFactory for ScriptThread {
}
impl ScriptThread {
- pub(crate) fn get_any_layout_chan() -> Option<Sender<Msg>> {
- SCRIPT_THREAD_ROOT.with(|root| {
- let script_thread = match root.get() {
- Some(s) => unsafe { &*s },
- None => return None,
- };
- script_thread
- .documents
- .borrow()
- .map
- .values()
- .next()
- .map(|d| d.window().layout_chan())
- .cloned()
- })
- }
-
pub fn runtime_handle() -> ParentRuntime {
SCRIPT_THREAD_ROOT.with(|root| {
let script_thread = unsafe { &*root.get().unwrap() };