mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove unused methods from ThreadSafeLayoutNode
`get_input_size ` and `get_input_value ` aren't used in the codebase. Ref.-Issue: #8063
This commit is contained in:
parent
b847e4dd77
commit
b5439a7c61
1 changed files with 0 additions and 19 deletions
|
@ -815,25 +815,6 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_input_value(&self) -> String {
|
||||
unsafe {
|
||||
let input: Option<LayoutJS<HTMLInputElement>> = HTMLInputElementCast::to_layout_js(self.get_jsmanaged());
|
||||
match input {
|
||||
Some(input) => input.get_value_for_layout(),
|
||||
None => panic!("not an input element!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_input_size(&self) -> u32 {
|
||||
unsafe {
|
||||
match HTMLInputElementCast::to_layout_js(self.get_jsmanaged()) {
|
||||
Some(input) => input.get_size_for_layout(),
|
||||
None => panic!("not an input element!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute)
|
||||
-> Option<u32> {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue