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

stylo: Switch to Servo style backend for compositor animations #19042

Merged
merged 4 commits into from Oct 27, 2017

Conversation

@BorisChiou
Copy link
Contributor

BorisChiou commented Oct 27, 2017

These are inter-dependent patches for bug 1340005. We add two FFIs to create the
AnimationValues of Opacity and Transform because we support these two properties
on the compositor. Besides, we factor out some common functions in glue.rs, so we
can use the same code path for both main-thread and compositor-thread animations.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix Bug 1340005.
  • These changes do not require tests because we have automatic test coverage on Gecko already, and Servo doesn't support compositor animation for now.

This change is Reviewable

@highfive
Copy link

highfive commented Oct 27, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/gecko/generated/bindings.rs, components/style/gecko_bindings/sugar/ns_css_value.rs, ports/geckolib/glue.rs, components/style/properties/gecko.mako.rs
  • @canaltinova: components/style/gecko/generated/bindings.rs, components/style/gecko_bindings/sugar/ns_css_value.rs, components/style/properties/gecko.mako.rs
  • @emilio: components/style/gecko/generated/bindings.rs, components/style/gecko_bindings/sugar/ns_css_value.rs, ports/geckolib/glue.rs, components/style/properties/gecko.mako.rs
@highfive
Copy link

highfive commented Oct 27, 2017

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!
@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

Those patches are reviewed by @birtles and @hiikezoe.

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@bors-servo p=10

Hope I can land this ASAP.

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

Trying commit 3a29c63 with merge 4e2c0e3...

bors-servo added a commit that referenced this pull request Oct 27, 2017
stylo: Switch to Servo style backend for compositor animations

These are inter-dependent patches for bug 1340005. We add two FFIs to create the
AnimationValues of Opacity and Transform because we support these two properties
on the compositor. Besides, we factor out some common function in glue.rs, so we
can use the same code path for both main-thread and compositor-thread animations.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1340005](https://bugzilla.mozilla.org/show_bug.cgi?id=1340005).
- [X] These changes do not require tests because we have automatic test coverage on Gecko already, and Servo doesn't support compositor animation for now.

<!-- 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/19042)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

💔 Test failed - linux-rel-wpt

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@bors-servo r=birtles, hiro

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

📌 Commit 3a29c63 has been approved by birtles,

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@bors-servo r=birtles,hiro

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

📌 Commit 3a29c63 has been approved by birtles,hiro

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

💔 Test failed - mac-rel-wpt3

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Oct 27, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

@bors-servo bors-servo merged commit 3a29c63 into servo:master Oct 27, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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

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