Skip to content

Fix #7268 - getComputedStyle should take Element, not HTMLElement - #7288

Merged
bors-servo merged 1 commit into
servo:masterfrom
mdibaiee:computedstyle-element
Aug 23, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
mdibaiee:computedstyle-element

Conversation

@mdibaiee

Copy link
Copy Markdown

This is my first patch, I hope I'm doing it right.

About the test, do you think this is enough and reliable?

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 19, 2015
@highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

@Ms2ger

Ms2ger commented Aug 20, 2015

Copy link
Copy Markdown
Contributor

Thank you for your PR. I have just a few comments below.

-S-awaiting-review +S-needs-code-changes


Reviewed 4 of 8 files at r1, 1 of 1 files at r2.
Review status: 5 of 8 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful.


components/script/dom/htmlelement.rs, line 139 [r2] (raw file):
We prefer ElementCast::from_ref.


components/script/dom/webidls/Window.webidl, line 100 [r2] (raw file):
Remove this line entirely.


tests/wpt/mozilla/tests/css/computedstyle_on_element.html, line 13 [r2] (raw file):
It's probably easier to make this a scripted test rather than a reftest. Please wrap all your code in test(function() { ... }) and make this assert_equals(style.opacity, "1");


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 20, 2015
@Ms2ger Ms2ger self-assigned this Aug 20, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 20, 2015
@Ms2ger

Ms2ger commented Aug 20, 2015

Copy link
Copy Markdown
Contributor

Reviewed 1 of 8 files at r1, 5 of 5 files at r3.
Review status: 6 of 7 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.


tests/wpt/mozilla/tests/mozilla/element_getcomputedstyle.html, line 1 [r3] (raw file):
You're missing

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

(You'll need to regenerate the manifest again.)


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 20, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 20, 2015
@Ms2ger

Ms2ger commented Aug 21, 2015

Copy link
Copy Markdown
Contributor

Looking good! All you'll need to do now is squash the four commits into one, and update the commit message to include "fixes #7268" (literally, so github picks it up when we merge).

-S-awaiting-review +S-needs-squash


Reviewed 2 of 2 files at r4.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 21, 2015
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 21, 2015
@mdibaiee

Copy link
Copy Markdown
Author

I'm not sure if I have done it correctly, do I have to create another pull request with only one commit? Like this: https://github.com/mdibaiee/servo/tree/computedstyle

@Ms2ger

Ms2ger commented Aug 21, 2015

Copy link
Copy Markdown
Contributor

You can delete your computedstyle-element branch locally, git branch -m computedstyle computedstyle-element and then git push -f <your remote> computedstyle-element

@mdibaiee
mdibaiee force-pushed the computedstyle-element branch from 207a428 to 8a3775b Compare August 21, 2015 16:29
@mdibaiee

Copy link
Copy Markdown
Author

@Ms2ger Oh right, done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid we introduced a new lint about sorting use statements that decided to bite you; sorry about that. Merging those two use lines should make it happy.

@mdibaiee
mdibaiee force-pushed the computedstyle-element branch from 8a3775b to b7d2515 Compare August 22, 2015 10:46
@mdibaiee

Copy link
Copy Markdown
Author

@Ms2ger: Right, that's fixed now! Thanks for reviewing my PR.

@Ms2ger

Ms2ger commented Aug 22, 2015

Copy link
Copy Markdown
Contributor

Thank you!

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b7d2515 has been approved by Ms2ger

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Aug 22, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b7d2515 with merge f6b1834...

bors-servo pushed a commit that referenced this pull request Aug 22, 2015
Fix #7268 - getComputedStyle should take `Element`, not `HTMLElement`

This is my first patch, I hope I'm doing it right.

About the test, do you think this is enough and reliable?

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 22, 2015
@Ms2ger

Ms2ger commented Aug 22, 2015

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux1, mac1, mac2 are reusable. Rebuilding only linux2, mac3...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 22, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b7d2515 with merge 6e06cae...

bors-servo pushed a commit that referenced this pull request Aug 23, 2015
Fix #7268 - getComputedStyle should take `Element`, not `HTMLElement`

This is my first patch, I hope I'm doing it right.

About the test, do you think this is enough and reliable?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7288)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 23, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit b7d2515 into servo:master Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants