From eecdfdf6c17b71b03a9d6404d83de482880aa26c Mon Sep 17 00:00:00 2001 From: Sam Gibson Date: Tue, 1 Sep 2015 11:14:29 +1200 Subject: Makes int_getter macro, and uses -1 as default maxlength instead of maxint --- components/script/dom/htmltextareaelement.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'components/script/dom/htmltextareaelement.rs') 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, -- cgit v1.2.3