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

Format component `style` #21652

Merged
merged 4 commits into from Sep 9, 2018
Merged

Format component `style` #21652

merged 4 commits into from Sep 9, 2018

Conversation

@chansuke
Copy link
Contributor

chansuke commented Sep 9, 2018

Format components/style with:

rustfmt components/style/*.rs

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix part of #21373.
  • These changes do not require tests because they format the components only.

This change is Reviewable

@highfive
Copy link

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
Copy link

highfive commented Sep 9, 2018

Heads up! This PR modifies the following files:

  • @emilio: components/style/values/generics/flex.rs, components/style/stylesheet_set.rs, components/style/dom_apis.rs, components/style/gecko/url.rs, components/style/invalidation/element/element_wrapper.rs and 114 more
@highfive
Copy link

highfive commented Sep 9, 2018

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style code, but no tests are modified. Please consider adding a test!
@CYBAI
Copy link
Collaborator

CYBAI commented Sep 9, 2018

Maybe These changes fix #21373. needs to be These changes fix part of #21373.?
Or, it will make the issue closed once this PR merged.

BorisChiou added 3 commits Sep 7, 2018
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
@jdm
Copy link
Member

jdm commented Sep 9, 2018

cc @emilio

@emilio
Copy link
Member

emilio commented Sep 9, 2018

LGTM, I'll rebase this on top of #21653 because they'd conflict.

@emilio
Copy link
Member

emilio commented Sep 9, 2018

I filed rust-lang/rustfmt#3005 on some awkward formatting.

@emilio emilio force-pushed the chansuke:format_style branch from 2e49886 to 8dab4d6 Sep 9, 2018
@emilio
Copy link
Member

emilio commented Sep 9, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Sep 9, 2018

📌 Commit 8dab4d6 has been approved by emilio

@highfive highfive assigned emilio and unassigned SimonSapin Sep 9, 2018
@jdm jdm mentioned this pull request Sep 9, 2018
53 of 53 tasks complete
@emilio
Copy link
Member

emilio commented Sep 9, 2018

@bors-servo p=1

  • So that they both merge before other changes to components/ which are also in the queue and should get synced in Gecko, so that the order of the commit is the same on both repos... Though it's fairly unimportant if it doesn't happen.
@bors-servo
Copy link
Contributor

bors-servo commented Sep 9, 2018

Testing commit 8dab4d6 with merge c16d77f...

bors-servo added a commit that referenced this pull request Sep 9, 2018
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
Copy link
Contributor

bors-servo commented Sep 9, 2018

💔 Test failed - mac-rel-wpt3

@jdm
Copy link
Member

jdm commented Sep 9, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Sep 9, 2018

Testing commit 8dab4d6 with merge c8fd638...

bors-servo added a commit that referenced this pull request Sep 9, 2018
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
Copy link
Contributor

bors-servo commented Sep 9, 2018

@bors-servo bors-servo merged commit 8dab4d6 into servo:master Sep 9, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: failure
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Sep 9, 2018
jankeromnes pushed a commit to jankeromnes/gecko that referenced this pull request Sep 10, 2018
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
This cherry-picks servo/servo#21652.

UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
This cherry-picks servo/servo#21652.

UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
This cherry-picks servo/servo#21652.

UltraBlame original commit: 9070b703aadf916ba787296f3a41c04752368db2
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

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