mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Makes int_getter macro, and uses -1 as default maxlength instead of maxint
This commit is contained in:
parent
d26c555e2a
commit
eecdfdf6c1
4 changed files with 51 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue