mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #8071 - romankl:gh/8063, r=nox
remove unused methods from ThreadSafeLayoutNode `get_input_size ` and `get_input_value ` aren't used in the codebase. Ref.-Issue: #8063 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8071) <!-- Reviewable:end -->
This commit is contained in:
commit
50ad1b064d
1 changed files with 0 additions and 19 deletions
|
@ -810,25 +810,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)
|
pub fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute)
|
||||||
-> Option<u32> {
|
-> Option<u32> {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue