diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 16:01:37 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 16:01:37 +0530 |
commit | 28582bb9f55c89125ea2f4873e1ee079bcc5d092 (patch) | |
tree | f4dca4abd9b2737fd9929dcc7a234d4435d4b913 /components/script/script_task.rs | |
parent | 7ccdc42a660bed7ac3bd3ad110567b79cba012ff (diff) | |
parent | d3c852ed8598463a41f4ed377434daabd1ae2cf7 (diff) | |
download | servo-28582bb9f55c89125ea2f4873e1ee079bcc5d092.tar.gz servo-28582bb9f55c89125ea2f4873e1ee079bcc5d092.zip |
Auto merge of #8633 - rilut:remove-node-is-anchor-element, r=nox
Remove 'Node::is_anchor_element'
Should fixes #8631.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8633)
<!-- Reviewable:end -->
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 87f2d55f615..1f407ab940a 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; @@ -1797,7 +1798,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(); @@ -1808,7 +1809,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(); |