Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FormControl trait #7801

Merged
merged 2 commits into from Oct 1, 2015
Merged

Conversation

@aopicier
Copy link
Contributor

aopicier commented Sep 30, 2015

The trait is now implemented for HTMLFooElement instead of
&HTMLFooElement and does no longer require an impl body.

Suggested by @Manishearth

Review on Reviewable

The trait is now implemented for HTMLFooElement instead of
&HTMLFooElement and does no longer require an impl body.
@aopicier
Copy link
Contributor Author

aopicier commented Sep 30, 2015

@jdm
Copy link
Member

jdm commented Sep 30, 2015

This is great!

@Manishearth
Copy link
Member

Manishearth commented Sep 30, 2015

You need to alphabetize the use statements:

./components/script/dom/htmlformelement.rs:12: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::EventTargetCast
    found: dom::bindings::codegen::InheritTypes::{ElementBase, ElementCast}
./components/script/dom/htmlformelement.rs:13: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::HTMLDataListElementCast
    found: dom::bindings::codegen::InheritTypes::EventTargetCast
./components/script/dom/htmlformelement.rs:14: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::HTMLElementCast
    found: dom::bindings::codegen::InheritTypes::HTMLDataListElementCast
./components/script/dom/htmlformelement.rs:15: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::HTMLFormElementCast
    found: dom::bindings::codegen::InheritTypes::HTMLElementCast
./components/script/dom/htmlformelement.rs:16: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::HTMLFormElementDerived
    found: dom::bindings::codegen::InheritTypes::HTMLFormElementCast
./components/script/dom/htmlformelement.rs:17: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::HTMLInputElementCast
    found: dom::bindings::codegen::InheritTypes::HTMLFormElementDerived
./components/script/dom/htmlformelement.rs:18: use statement is not in alphabetical order
    expected: dom::bindings::codegen::InheritTypes::{ElementBase, ElementCast}
    found: dom::bindings::codegen::InheritTypes::HTMLInputElementCast

(This can be verified with ./mach test-tidy)

Other than that, r=me

@Manishearth
Copy link
Member

Manishearth commented Sep 30, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2015

📌 Commit b46243c has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2015

Testing commit b46243c with merge bf9efb6...

bors-servo pushed a commit that referenced this pull request Sep 30, 2015
Refactor FormControl trait

The trait is now implemented for HTMLFooElement instead of
&HTMLFooElement and does no longer require an impl body.

Suggested by @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7801)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2015

💔 Test failed - mac-dev-ref-unit

@jdm
Copy link
Member

jdm commented Sep 30, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2015

Previous build results for android, gonk, linux-dev are reusable. Rebuilding only linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2015

💔 Test failed - mac-rel-wpt

@aopicier
Copy link
Contributor Author

aopicier commented Sep 30, 2015

Now it crashes in dom/nodes/Document-createElement-namespace.html. I can reproduce this crash on master without my changes. Here is what I see:

0:03.45 PROCESS_OUTPUT: Thread-TestrunnerManager-1 (pid:12994) "thread '<main>' panicked at 'You should have disposed of the pixmap properly with destroy()! This pixmap will leak!', /home/ph/servo/.cargo/git/checkouts/rust-layers-c02709c0157e02cd/master/src/platform/linux/surface.rs:166"

@jdm
Copy link
Member

jdm commented Oct 1, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Oct 1, 2015

Testing commit b46243c with merge 94e85a5...

bors-servo pushed a commit that referenced this pull request Oct 1, 2015
Refactor FormControl trait

The trait is now implemented for HTMLFooElement instead of
&HTMLFooElement and does no longer require an impl body.

Suggested by @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7801)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 1, 2015

@bors-servo bors-servo merged commit b46243c into servo:master Oct 1, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@aopicier aopicier deleted the aopicier:refactor_formcontrol branch Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.