diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2016-04-25 19:46:21 -0400 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2016-05-04 21:01:26 -0400 |
commit | 12a96f71945dbd27336469f69f8e679a2b54b40b (patch) | |
tree | cafeaadccad16a10070088175fcadb213af72ac9 | |
parent | ce302c78c10e54ca592a3af0b4e728cb6b0073ff (diff) | |
download | servo-12a96f71945dbd27336469f69f8e679a2b54b40b.tar.gz servo-12a96f71945dbd27336469f69f8e679a2b54b40b.zip |
Rename DOM manipulation messages to tasks
-rw-r--r-- | components/script/script_thread.rs | 4 | ||||
-rw-r--r-- | components/script/task_source/dom_manipulation.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index a46c1a28b18..5891bd35c7c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -932,8 +932,8 @@ impl ScriptThread { LiveDOMReferences::cleanup(addr), MainThreadScriptMsg::Common(CommonScriptMsg::CollectReports(reports_chan)) => self.collect_reports(reports_chan), - MainThreadScriptMsg::DOMManipulation(msg) => - msg.handle_msg(self), + MainThreadScriptMsg::DOMManipulation(task) => + task.handle_task(self), } } diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index 5993825a1be..de3fc19710e 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -42,7 +42,7 @@ pub enum DOMManipulationTask { } impl DOMManipulationTask { - pub fn handle_msg(self, script_thread: &ScriptThread) { + pub fn handle_task(self, script_thread: &ScriptThread) { use self::DOMManipulationTask::*; match self { |