diff options
author | Rizky Luthfianto <mrluthfianto@gmail.com> | 2015-11-21 11:44:10 +0700 |
---|---|---|
committer | Rizky Luthfianto <mrluthfianto@gmail.com> | 2015-11-21 11:44:10 +0700 |
commit | d3c852ed8598463a41f4ed377434daabd1ae2cf7 (patch) | |
tree | 3692661c914974165603ebbe06a810c6d9856bf8 /components/script/script_task.rs | |
parent | 8b6bfb615a8a04177c321c4940f79f090b0a7971 (diff) | |
download | servo-d3c852ed8598463a41f4ed377434daabd1ae2cf7.tar.gz servo-d3c852ed8598463a41f4ed377434daabd1ae2cf7.zip |
Remove 'Node::is_anchor_element'
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 043c0574be1..1259eea9a7d 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -35,6 +35,7 @@ use dom::document::{Document, DocumentProgressHandler, IsHTMLDocument}; use dom::document::{DocumentSource, MouseEventType}; use dom::element::Element; use dom::event::{Event, EventBubbles, EventCancelable}; +use dom::htmlanchorelement::HTMLAnchorElement; use dom::node::{Node, NodeDamage, window_from_node}; use dom::servohtmlparser::{ParserContext, ServoHTMLParser}; use dom::uievent::UIEvent; @@ -1796,7 +1797,7 @@ impl ScriptTask { // Notify Constellation about anchors that are no longer mouse over targets. for target in &*prev_mouse_over_targets { if !mouse_over_targets.contains(target) { - if target.upcast::<Node>().is_anchor_element() { + if target.is::<HTMLAnchorElement>() { let event = ConstellationMsg::NodeStatus(None); let ConstellationChan(ref chan) = self.constellation_chan; chan.send(event).unwrap(); @@ -1807,7 +1808,7 @@ impl ScriptTask { // Notify Constellation about the topmost anchor mouse over target. for target in &*mouse_over_targets { - if target.upcast::<Node>().is_anchor_element() { + if target.is::<HTMLAnchorElement>() { let status = target.get_attribute(&ns!(""), &atom!("href")) .and_then(|href| { let value = href.value(); |