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

Computed angle should preserve its unit #16594

Closed
canova opened this issue Apr 24, 2017 · 1 comment
Closed

Computed angle should preserve its unit #16594

canova opened this issue Apr 24, 2017 · 1 comment

Comments

@canova
Copy link
Member

@canova canova commented Apr 24, 2017

Currently, Servo computes and stores computed Angle only as radian. Gecko stores computed Angle like specified Angle(radian/degree/gradian/turn). This causes some linear-gradient mochitest failures in stylo and we are losing information here. We should fix that.

@highfive
Copy link

@highfive highfive commented Apr 24, 2017

cc @emilio

@canova canova self-assigned this Apr 28, 2017
@canova canova mentioned this issue May 1, 2017
3 of 3 tasks complete
bors-servo added a commit that referenced this issue May 1, 2017
Preserve units in computed Angle

<!-- Please describe your changes on the following line: -->
It was converting all angles to radians before. But other browsers preserves the angle units. Fixed that behavior.

---
<!-- 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 fix #16594 and [Bug 1360659](https://bugzilla.mozilla.org/show_bug.cgi?id=1360659)

<!-- 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. -->

<!-- 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/16674)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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