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 {