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 Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. #17654

Merged
merged 1 commit into from Jul 11, 2017

Conversation

jyc
Copy link
Contributor

@jyc jyc commented Jul 10, 2017

Has been reviewed: https://reviewboard.mozilla.org/r/155336/

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

Bugzilla issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1355380


This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/gecko/generated/bindings.rs, components/style/properties/gecko.mako.rs, components/style/values/computed/mod.rs, components/style/properties/longhand/inherited_box.mako.rs
  • @canaltinova: components/style/gecko/generated/bindings.rs, components/style/properties/gecko.mako.rs, components/style/values/computed/mod.rs, components/style/properties/longhand/inherited_box.mako.rs
  • @emilio: components/style/gecko/generated/bindings.rs, components/style/properties/gecko.mako.rs, components/style/values/computed/mod.rs, components/style/properties/longhand/inherited_box.mako.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 10, 2017
@highfive
Copy link

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

@jyc
Copy link
Contributor Author

jyc commented Jul 11, 2017

The failure is apparently something to do with LLVM? https://travis-ci.org/servo/servo/jobs/252199331#L2455

@emilio
Copy link
Member

emilio commented Jul 11, 2017

Travis is broken (out of disk space it seems), but it doesn't block landing.

@nox
Copy link
Contributor

nox commented Jul 11, 2017

"Bug 1355380 - Part 2: Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles." could use being shortened.

fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
match *self {
Orientation::Angle0 => dest.write_str("0"),
Orientation::Angle90 => dest.write_str("90"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't that be 90deg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, thanks for the catch!

and pass orientations directly as an enum instead of as angles.

Depends on a Gecko change to be subsequently landed in m-c.
@jyc
Copy link
Contributor Author

jyc commented Jul 11, 2017

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

@jyc: 🔑 Insufficient privileges: Not in reviewers

@highfive highfive assigned Manishearth and unassigned emilio Jul 11, 2017
@canova
Copy link
Contributor

canova commented Jul 11, 2017

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

📋 Looks like this PR is still in progress, ignoring approval

@canova canova changed the title [WIP] Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. Jul 11, 2017
@Manishearth
Copy link
Member

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit e554146 has been approved by Manishearth

@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. labels Jul 11, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit e554146 with merge de331c6...

bors-servo pushed a commit that referenced this pull request Jul 11, 2017
Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles.

Has been reviewed: https://reviewboard.mozilla.org/r/155336/

<!-- 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
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Bugzilla issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1355380

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

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: Manishearth
Pushing de331c6 to master...

@bors-servo bors-servo merged commit e554146 into servo:master Jul 11, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 11, 2017
moz-servo-sync pushed a commit to moz-servo-sync/servo that referenced this pull request Jul 11, 2017
…test/test_value_computation.html. r=backout

Backs out servo#17654
bors-servo pushed a commit that referenced this pull request Jul 11, 2017
Backed out changeset 3977404931e5 for failing mochitest layout/style/test/test_value_computation.html. r=backout

Backed out changeset 3977404931e5 for failing mochitest layout/style/test/test_value_computation.html. r=backout

Backs out #17654

<!-- 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/17679)
<!-- Reviewable:end -->
@jyc
Copy link
Contributor Author

jyc commented Jul 12, 2017

This was backed out, and I'd like to try it again now that the full try run has passed (https://treeherder.mozilla.org/#/jobs?repo=try&revision=fd689286571af0eb0bcd1ae3255fe4e1a7230c3f)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants