diff options
author | Anthony Ramine <nox@nox.paris> | 2020-04-03 18:54:11 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-04-04 13:10:19 +0200 |
commit | 185a402d9cc41d3e680b99564f5fc8b519ecf129 (patch) | |
tree | 14869f8e2feae209fcf75026fb079021986c13f9 /components/script/script_thread.rs | |
parent | 516e8e0aa600cdef34e506e0ed7180d12dd9ac7d (diff) | |
download | servo-185a402d9cc41d3e680b99564f5fc8b519ecf129.tar.gz servo-185a402d9cc41d3e680b99564f5fc8b519ecf129.zip |
Make DOM own the style and layout data, in an UnsafeCell
The previous Cell was a lie.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 17 |
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() }; |