mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Cleanup Node::is_html_element_in_html_document.
This commit is contained in:
parent
c009bdec4e
commit
e63a92956d
1 changed files with 1 additions and 3 deletions
|
@ -2286,9 +2286,7 @@ impl<'a> style::TNode<'a, JSRef<'a, Element>> for JSRef<'a, Node> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_html_element_in_html_document(self) -> bool {
|
fn is_html_element_in_html_document(self) -> bool {
|
||||||
let elem: Option<JSRef<'a, Element>> = ElementCast::to_ref(self);
|
self.as_element().html_element_in_html_document()
|
||||||
assert!(elem.is_some());
|
|
||||||
elem.unwrap().html_element_in_html_document()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn has_changed(self) -> bool { self.get_has_changed() }
|
fn has_changed(self) -> bool { self.get_has_changed() }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue