From 12a96f71945dbd27336469f69f8e679a2b54b40b Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Mon, 25 Apr 2016 19:46:21 -0400 Subject: [PATCH] Rename DOM manipulation messages to tasks --- components/script/script_thread.rs | 4 ++-- 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 {