mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove an avoidable null-check from HTMLAnchorElement::activation_behavior.
This commit is contained in:
parent
2e89228cd5
commit
59ea4dbd21
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ impl<'a> Activatable for &'a HTMLAnchorElement {
|
|||
if let Some(element) = ElementCast::to_ref(target) {
|
||||
if target.is_htmlimageelement() && element.has_attribute(&atom!("ismap")) {
|
||||
|
||||
let target_node = NodeCast::to_ref(target).unwrap();
|
||||
let target_node = NodeCast::from_ref(element);
|
||||
let rect = window_from_node(target_node).r().content_box_query(
|
||||
target_node.to_trusted_node_address());
|
||||
ismap_suffix = Some(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue