diff options
author | Sam Gibson <sam@ifdown.net> | 2015-09-01 11:14:29 +1200 |
---|---|---|
committer | Sam Gibson <sam@ifdown.net> | 2015-12-03 14:00:52 +1100 |
commit | eecdfdf6c17b71b03a9d6404d83de482880aa26c (patch) | |
tree | 678602a59cecf6b601ef4b8b740450140463a449 /components/script/dom/htmltextareaelement.rs | |
parent | d26c555e2a2fe0e10b9237e1ccf48d96665828c7 (diff) | |
download | servo-eecdfdf6c17b71b03a9d6404d83de482880aa26c.tar.gz servo-eecdfdf6c17b71b03a9d6404d83de482880aa26c.zip |
Makes int_getter macro, and uses -1 as default maxlength instead of maxint
Diffstat (limited to 'components/script/dom/htmltextareaelement.rs')
-rw-r--r-- | components/script/dom/htmltextareaelement.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/components/script/dom/htmltextareaelement.rs b/components/script/dom/htmltextareaelement.rs index 94057d4eee0..76d25092435 100644 --- a/components/script/dom/htmltextareaelement.rs +++ b/components/script/dom/htmltextareaelement.rs @@ -30,7 +30,6 @@ use script_task::ScriptTaskEventCategory::InputEvent; use script_task::{CommonScriptMsg, Runnable}; use selectors::states::*; use std::cell::Cell; -use std::i32; use string_cache::Atom; use textinput::{KeyReaction, Lines, TextInput}; use util::str::DOMString; @@ -90,7 +89,6 @@ impl<'a> RawLayoutHTMLTextAreaElementHelpers for &'a HTMLTextAreaElement { static DEFAULT_COLS: u32 = 20; static DEFAULT_ROWS: u32 = 2; -static DEFAULT_MAX_LENGTH: i32 = i32::MAX; impl HTMLTextAreaElement { fn new_inherited(localName: DOMString, |