Remove useless unsafe methods on LayoutJS<T>

This commit is contained in:
Anthony Ramine 2015-04-26 17:38:13 +02:00
parent 9369b616ce
commit 4e7b9d319c
5 changed files with 6 additions and 17 deletions

View file

@ -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()
}