Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFormat component `style` #21652
Format component `style` #21652
Conversation
highfive
commented
Sep 9, 2018
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon. |
highfive
commented
Sep 9, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Sep 9, 2018
|
Maybe |
Implement Animate trait for SVGPathData. The basic idea is: we normalize |this| and |other| svg paths, and then do interpolation on the normalized svg paths. The normalization is to convert relative coordinates into absolute coordinates, so we could do real number interpolation on each path command directly. In this patch, we also make |clip-path:path()| animatable. Differential Revision: https://phabricator.services.mozilla.com/D4786
Here, we change the animation type of offset-path as ComputedValue, so we could do animation on it. Also enable the wpt for offset-path interpolation. In test_transition_per_property.html, we add some basic tests ifor offset-path. ToAnimatedZero for PathCommand will be dropped later. Because the animations of arcs with mismatched flags are fallen back to discrete animations, the result of getComputedValue is not normalized in this case. This makes some wpt failed even though the progress is 100%. Depends on D4786 Differential Revision: https://phabricator.services.mozilla.com/D4787
We define the standalone types for using derive macro easily and overriding the behaviors of this traits. This could avoid defining the general behavior of booleans. Depends on D4788 Differential Revision: https://phabricator.services.mozilla.com/D4813
|
cc @emilio |
|
LGTM, I'll rebase this on top of #21653 because they'd conflict. |
|
I filed rust-lang/rustfmt#3005 on some awkward formatting. |
|
@bors-servo r+ |
|
|
|
@bors-servo p=1
|
Format component `style` <!-- Please describe your changes on the following line: --> Format `components/style` with: ``` rustfmt components/style/*.rs ``` --- <!-- 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 part of #21373. - [x] These changes do not require tests because they format the components only. <!-- 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/21652) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Format component `style` <!-- Please describe your changes on the following line: --> Format `components/style` with: ``` rustfmt components/style/*.rs ``` --- <!-- 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 part of #21373. - [x] These changes do not require tests because they format the components only. <!-- 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/21652) <!-- Reviewable:end -->
|
|
This cherry-picks servo/servo#21652.
This cherry-picks servo/servo#21652.
This cherry-picks servo/servo#21652. UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
This cherry-picks servo/servo#21652. UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
This cherry-picks servo/servo#21652. UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
chansuke commentedSep 9, 2018
•
edited by emilio
Format
components/stylewith:./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is