aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
authorArthur Marble <arthur@info9.net>2016-09-18 03:41:16 -0500
committerArthur Marble <arthur@info9.net>2016-09-18 03:41:16 -0500
commit883902bd972c9ea91cf6b6be74908e87c517b72e (patch)
tree1c598d19c2770949d3f2fa31b401a0d671212a83 /components/script/dom/htmlinputelement.rs
parentdbec9d845472251b73e444d80a493173f11a0482 (diff)
downloadservo-883902bd972c9ea91cf6b6be74908e87c517b72e.tar.gz
servo-883902bd972c9ea91cf6b6be74908e87c517b72e.zip
Most of the code refactoring needed to be done is done with this commit.
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rw-r--r--components/script/dom/htmlinputelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 51f9c4fb080..aded18162ba 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -125,12 +125,12 @@ static DEFAULT_INPUT_SIZE: u32 = 20;
static DEFAULT_MAX_LENGTH: i32 = -1;
impl HTMLInputElement {
- fn new_inherited(localName: Atom, prefix: Option<DOMString>, document: &Document) -> HTMLInputElement {
+ fn new_inherited(local_name: Atom, prefix: Option<DOMString>, document: &Document) -> HTMLInputElement {
let chan = document.window().constellation_chan().clone();
HTMLInputElement {
htmlelement:
HTMLElement::new_inherited_with_state(IN_ENABLED_STATE | IN_READ_WRITE_STATE,
- localName, prefix, document),
+ local_name, prefix, document),
input_type: Cell::new(InputType::InputText),
placeholder: DOMRefCell::new(DOMString::new()),
checked_changed: Cell::new(false),
@@ -145,10 +145,10 @@ impl HTMLInputElement {
}
#[allow(unrooted_must_root)]
- pub fn new(localName: Atom,
+ pub fn new(local_name: Atom,
prefix: Option<DOMString>,
document: &Document) -> Root<HTMLInputElement> {
- Node::reflect_node(box HTMLInputElement::new_inherited(localName, prefix, document),
+ Node::reflect_node(box HTMLInputElement::new_inherited(local_name, prefix, document),
document,
HTMLInputElementBinding::Wrap)
}