Skip to content

style: sync changes from mozilla-central. - #21653

Merged
bors-servo merged 3 commits into
servo:masterfrom
emilio:gecko-sync
Sep 9, 2018
Merged

bors-servo merged 3 commits into
servo:masterfrom
emilio:gecko-sync

Conversation

@emilio

@emilio emilio commented Sep 9, 2018 •

Copy link
Copy Markdown
Member

See each individual commit for details.


This change is Reviewable

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
@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 style code, but no tests are modified. Please consider adding a test!

@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 31fc6cd has been approved by emilio

@highfive highfive assigned emilio and unassigned paulrouget 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
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 31fc6cd with merge a39a57c...

bors-servo pushed a commit that referenced this pull request Sep 9, 2018
style: sync changes from mozilla-central.

See each individual commit for details.

<!-- 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/21653)
<!-- Reviewable:end -->
@emilio emilio mentioned this pull request Sep 9, 2018
4 tasks done
@emilio

emilio commented Sep 9, 2018

Copy link
Copy Markdown
Member Author

@bors-servo p=1

@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit 31fc6cd 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
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.

5 participants