diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index 9b933c34dcc..39fd25e4de7 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -27,7 +27,7 @@ use servo_util::str::{DOMString, parse_unsigned_integer}; use string_cache::Atom; use std::ascii::OwnedStrAsciiExt; -use std::cell::{Cell, RefCell}; +use std::cell::Cell; static DEFAULT_SUBMIT_VALUE: &'static str = "Submit"; static DEFAULT_RESET_VALUE: &'static str = "Reset"; @@ -49,7 +49,7 @@ pub struct HTMLInputElement { htmlelement: HTMLElement, input_type: Cell, checked: Cell, - uncommitted_value: RefCell>, + uncommitted_value: DOMRefCell>, value: DOMRefCell>, size: Cell, } @@ -68,7 +68,7 @@ impl HTMLInputElement { htmlelement: HTMLElement::new_inherited(HTMLInputElementTypeId, localName, prefix, document), input_type: Cell::new(InputText), checked: Cell::new(false), - uncommitted_value: RefCell::new(None), + uncommitted_value: DOMRefCell::new(None), value: DOMRefCell::new(None), size: Cell::new(DEFAULT_INPUT_SIZE), }