mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08: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
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue