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

@ -164,7 +164,7 @@ impl LayoutHTMLInputElementHelpers for LayoutJS<HTMLInputElement> {
#[allow(unsafe_code)]
unsafe fn get_raw_attr_value(input: LayoutJS<HTMLInputElement>) -> Option<String> {
let elem: LayoutJS<Element> = input.transmute_copy();
let elem = ElementCast::from_layout_js(&input);
(*elem.unsafe_get()).get_attr_val_for_layout(&ns!(""), &atom!("value"))
.map(|s| s.to_owned())
}