mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Remove useless unsafe methods on LayoutJS<T>
This commit is contained in:
parent
9369b616ce
commit
4e7b9d319c
5 changed files with 6 additions and 17 deletions
|
@ -389,7 +389,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
if (*self.unsafe_get()).namespace != ns!(HTML) {
|
||||
return false
|
||||
}
|
||||
let node: LayoutJS<Node> = self.transmute_copy();
|
||||
let node = NodeCast::from_layout_js(&self);
|
||||
node.owner_doc_for_layout().is_html_document_for_layout()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue