diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-09-18 22:57:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-18 22:57:59 -0500 |
commit | 5457b80233f9ce6773711c7189230d9a0a63d93a (patch) | |
tree | 035cee7e21bb31b434d6353241960c12b465e366 /components/script/dom/htmlformelement.rs | |
parent | 157e3cc4e95e89e8c73a601028c09edaefe0f074 (diff) | |
parent | 5f961f9fd9aeb13ff6c5746a8d143a30a90b06c2 (diff) | |
download | servo-5457b80233f9ce6773711c7189230d9a0a63d93a.tar.gz servo-5457b80233f9ce6773711c7189230d9a0a63d93a.zip |
Auto merge of #13307 - bubbles231:code_refactor, r=Manishearth
Code refactoring
<!-- Please describe your changes on the following line: -->
The code was refactored to follow Rust naming conventions better.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes help fix #12379.
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because logic was not changed.
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13307)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index ff0f6e53b92..d6a794621e5 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -65,11 +65,11 @@ pub struct HTMLFormElement { } impl HTMLFormElement { - fn new_inherited(localName: Atom, + fn new_inherited(local_name: Atom, prefix: Option<DOMString>, document: &Document) -> HTMLFormElement { HTMLFormElement { - htmlelement: HTMLElement::new_inherited(localName, prefix, document), + htmlelement: HTMLElement::new_inherited(local_name, prefix, document), marked_for_reset: Cell::new(false), elements: Default::default(), generation_id: Cell::new(GenerationId(0)) @@ -77,10 +77,10 @@ impl HTMLFormElement { } #[allow(unrooted_must_root)] - pub fn new(localName: Atom, + pub fn new(local_name: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLFormElement> { - Node::reflect_node(box HTMLFormElement::new_inherited(localName, prefix, document), + Node::reflect_node(box HTMLFormElement::new_inherited(local_name, prefix, document), document, HTMLFormElementBinding::Wrap) } |