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

Make use of Servo-specific ToCss everywhere! #14089

Merged
merged 3 commits into from Nov 7, 2016
Merged

Conversation

@wafflespeanut
Copy link
Member

wafflespeanut commented Nov 6, 2016

This will allow types to be generic over our local ToCss


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because it's a refactor

This change is Reviewable

@highfive
Copy link

highfive commented Nov 6, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/computed/position.rs, components/style/values/specified/basic_shape.rs, components/style/properties/longhand/background.mako.rs, components/style/properties/longhand/text.mako.rs, components/style/properties/longhand/position.mako.rs, components/style/properties/longhand/outline.mako.rs, components/style/properties/longhand/list.mako.rs, components/style/properties/properties.mako.rs, components/style/viewport.rs, components/style/values/specified/image.rs, components/style/values/computed/basic_shape.rs, components/style/values/computed/image.rs, components/style/properties/longhand/font.mako.rs, components/style/properties/longhand/pointing.mako.rs, components/style/properties/longhand/inherited_box.mako.rs, components/style/properties/longhand/inherited_text.mako.rs, components/style/properties/longhand/effects.mako.rs, components/style/properties/longhand/svg.mako.rs, components/style/values/specified/mod.rs, components/style/properties/longhand/counters.mako.rs, components/style/properties/declaration_block.rs, components/style/values/computed/mod.rs, components/style/properties/longhand/border.mako.rs, components/style/properties/longhand/box.mako.rs, components/style/custom_properties.rs, components/style/properties/shorthand/serialize.mako.rs, components/style/values/mod.rs, components/style/properties/helpers.mako.rs, components/style/properties/longhand/inherited_table.mako.rs, components/style/properties/helpers/animated_properties.mako.rs, components/style/properties/longhand/column.mako.rs, components/style/values/specified/position.rs
  • @emilio: components/style/values/computed/position.rs, components/style/values/specified/basic_shape.rs, components/style/properties/longhand/background.mako.rs, ports/geckolib/Cargo.lock, components/style/properties/longhand/text.mako.rs, components/style/properties/longhand/position.mako.rs, ports/geckolib/glue.rs, components/style/properties/longhand/outline.mako.rs, components/style/properties/longhand/list.mako.rs, components/style/properties/properties.mako.rs, components/style/viewport.rs, components/style/values/specified/image.rs, components/style/values/computed/basic_shape.rs, components/style/values/computed/image.rs, components/style/properties/longhand/font.mako.rs, components/style/properties/longhand/pointing.mako.rs, components/style/properties/longhand/inherited_box.mako.rs, components/style/properties/longhand/inherited_text.mako.rs, components/style/properties/longhand/effects.mako.rs, components/style/properties/longhand/svg.mako.rs, components/style/values/specified/mod.rs, components/style/properties/longhand/counters.mako.rs, components/style/properties/declaration_block.rs, components/style/values/computed/mod.rs, components/style/properties/longhand/border.mako.rs, components/style/properties/longhand/box.mako.rs, components/style/custom_properties.rs, components/style/properties/shorthand/serialize.mako.rs, components/style/values/mod.rs, components/style/properties/helpers.mako.rs, components/style/properties/longhand/inherited_table.mako.rs, components/style/properties/helpers/animated_properties.mako.rs, components/style/properties/longhand/column.mako.rs, components/style/values/specified/position.rs
@highfive
Copy link

highfive commented Nov 6, 2016

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

@highfive highfive assigned SimonSapin and unassigned KiChjang Nov 6, 2016
@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

Okay, I just rebased. Both the builds succeed right now.

@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

Also, currently, I've re-exported ToCss from values module, because when I began this, the idea was to make use of ToCss from values. Now, all the modules should make use of style_traits::ToCss.

@wafflespeanut wafflespeanut force-pushed the wafflespeanut:tocss branch 3 times, most recently from 4adc009 to 4df9824 Nov 6, 2016
@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

This is ready for review! :)

@SimonSapin
Copy link
Member

SimonSapin commented Nov 6, 2016

@bors-servo r+


Reviewed 5 of 6 files at r1, 43 of 43 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2016

📌 Commit 4df9824 has been approved by SimonSapin

@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

@bors-servo r-

Oops. Just noticed the build failure in Travis. Gotta update the tests. Sorry 😞

@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

@bors-servo r=SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2016

📌 Commit 173a866 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2016

Testing commit 173a866 with merge e2d3fcd...

bors-servo added a commit that referenced this pull request Nov 6, 2016
Make use of Servo-specific ToCss everywhere!

<!-- Please describe your changes on the following line: -->

This will allow types to be generic over our local `ToCss`

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because it's a refactor

<!-- 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/14089)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2016

💔 Test failed - linux-dev

@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 6, 2016

Lockfile (sigh)

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2016

💔 Test failed - windows-dev

@wafflespeanut wafflespeanut force-pushed the wafflespeanut:tocss branch from b734c6e to 5ac1c11 Nov 7, 2016
@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 7, 2016

@bors-servo r=SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2016

📌 Commit 5ac1c11 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2016

Testing commit 5ac1c11 with merge 2f92fcb...

bors-servo added a commit that referenced this pull request Nov 7, 2016
Make use of Servo-specific ToCss everywhere!

<!-- Please describe your changes on the following line: -->

This will allow types to be generic over our local `ToCss`

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because it's a refactor

<!-- 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/14089)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2016

💔 Test failed - linux-rel-wpt

@wafflespeanut
Copy link
Member Author

wafflespeanut commented Nov 7, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2016

Testing commit 5ac1c11 with merge f48b3fe...

bors-servo added a commit that referenced this pull request Nov 7, 2016
Make use of Servo-specific ToCss everywhere!

<!-- Please describe your changes on the following line: -->

This will allow types to be generic over our local `ToCss`

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because it's a refactor

<!-- 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/14089)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2016

@bors-servo bors-servo merged commit 5ac1c11 into servo:master Nov 7, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Nov 7, 2016
3 of 3 tasks complete
@wafflespeanut wafflespeanut deleted the wafflespeanut:tocss branch Nov 7, 2016
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.