diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-10-19 04:32:34 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-10-19 04:32:34 -0600 |
commit | 50ad1b064d6e85e84707d83ca8f4b5b541b6b8da (patch) | |
tree | 8baa38f69a1273cbc018f7bce616a4c8212df34b | |
parent | ff2151b8bbc62fa29c90a429b7a4f12520420b6e (diff) | |
parent | b5439a7c61bd0f585ece625bd5cca8bf7317ce4b (diff) | |
download | servo-50ad1b064d6e85e84707d83ca8f4b5b541b6b8da.tar.gz servo-50ad1b064d6e85e84707d83ca8f4b5b541b6b8da.zip |
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 -->
-rw-r--r-- | components/layout/wrapper.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 9a040947a3c..cd496d77d87 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -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) -> Option<u32> { unsafe { |