Skip to content

Format component style - #21652

Merged
bors-servo merged 4 commits into
servo:masterfrom
chansuke:format_style
Sep 9, 2018
Merged

bors-servo merged 4 commits into
servo:masterfrom
chansuke:format_style

Conversation

@chansuke

@chansuke chansuke commented Sep 9, 2018 •

Copy link
Copy Markdown
Contributor

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 Format all code with rustfmt #21373.
  • These changes do not require tests because they format the components only.

This change is Reviewable

@highfive

highfive commented Sep 9, 2018

Copy link
Copy Markdown

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

highfive commented Sep 9, 2018

Copy link
Copy Markdown

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 highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 9, 2018
@highfive

highfive commented Sep 9, 2018

Copy link
Copy Markdown

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

CYBAI commented Sep 9, 2018

Copy link
Copy Markdown
Member

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.

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

jdm commented Sep 9, 2018

Copy link
Copy Markdown
Member

cc @emilio

@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member

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

@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member

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

@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8dab4d6 has been approved by emilio

@highfive highfive assigned emilio and unassigned SimonSapin Sep 9, 2018
@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 Sep 9, 2018
@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member

@jdm jdm mentioned this pull request Sep 9, 2018
53 tasks done
@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member

@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
Copy Markdown
Contributor

⌛ Testing commit 8dab4d6 with merge c16d77f...

bors-servo pushed 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
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt3

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 9, 2018
@jdm

jdm commented Sep 9, 2018

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8dab4d6 with merge c8fd638...

bors-servo pushed 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 -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Sep 9, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit 8dab4d6 into servo:master Sep 9, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 9, 2018
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
gcp pushed a commit to gcp/enterprise-firefox-old that referenced this pull request Feb 18, 2026
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.

8 participants