servo: Merge #13307 - Code refactoring (from bubbles231:code_refactor); r=Manishearth
<!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 5457b80233f9ce6773711c7189230d9a0a63d93a
This commit is contained in:
@@ -16,20 +16,20 @@ pub struct HTMLModElement {
|
||||
}
|
||||
|
||||
impl HTMLModElement {
|
||||
fn new_inherited(localName: Atom,
|
||||
fn new_inherited(local_name: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> HTMLModElement {
|
||||
HTMLModElement {
|
||||
htmlelement:
|
||||
HTMLElement::new_inherited(localName, prefix, document)
|
||||
HTMLElement::new_inherited(local_name, prefix, document)
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(localName: Atom,
|
||||
pub fn new(local_name: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLModElement> {
|
||||
Node::reflect_node(box HTMLModElement::new_inherited(localName, prefix, document),
|
||||
Node::reflect_node(box HTMLModElement::new_inherited(local_name, prefix, document),
|
||||
document,
|
||||
HTMLModElementBinding::Wrap)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user