From d8ef3809a6c73922a5affc475f623a0f1152be28 Mon Sep 17 00:00:00 2001 From: nxnfufunezn Date: Sat, 31 Oct 2015 17:41:00 +0530 Subject: Removed JS::root Fixes #8251 --- components/script/script_task.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index fa427db6ff1..4939a58e086 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1747,9 +1747,8 @@ impl ScriptTask { // Notify Constellation about the topmost anchor mouse over target. for target in &*mouse_over_targets { - let target = target.root(); if target.upcast::().is_anchor_element() { - let status = target.r().get_attribute(&ns!(""), &atom!("href")) + let status = target.get_attribute(&ns!(""), &atom!("href")) .and_then(|href| { let value = href.value(); let url = document.r().url(); -- cgit v1.2.3