diff options
author | nxnfufunezn <nxnfufunezn@gmail.com> | 2015-10-31 17:41:00 +0530 |
---|---|---|
committer | nxnfufunezn <nxnfufunezn@gmail.com> | 2015-10-31 18:15:16 +0530 |
commit | d8ef3809a6c73922a5affc475f623a0f1152be28 (patch) | |
tree | 282199e1d9c244c20d62f35b7f6517913d2e37f0 /components/script/script_task.rs | |
parent | 521a87180a85709f8f704df33537f79bd131bf71 (diff) | |
download | servo-d8ef3809a6c73922a5affc475f623a0f1152be28.tar.gz servo-d8ef3809a6c73922a5affc475f623a0f1152be28.zip |
Removed JS::root Fixes #8251
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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::<Node>().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(); |