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

Make transforms generic #18750

Merged
merged 21 commits into from Nov 2, 2017
Merged

Make transforms generic #18750

merged 21 commits into from Nov 2, 2017

Conversation

@Manishearth
Copy link
Member

Manishearth commented Oct 4, 2017

This makes the specified and computed value of transform share a generic
backing enum.

This will eventually be a complete fix for
https://bugzilla.mozilla.org/show_bug.cgi?id=1391145 , and also
incidentally fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1405881

Currently WIP -- the generic transform exists and is used, but this
currently misses some animation and glue cases.


This change is Reviewable

@highfive
Copy link

highfive commented Oct 4, 2017

Heads up! This PR modifies the following files:

  • @bholley: ports/geckolib/glue.rs, components/style/values/specified/transform.rs, components/style/properties/gecko.mako.rs, components/style/values/generics/transform.rs, components/style/gecko_bindings/sugar/ns_css_value.rs and 4 more
  • @canaltinova: components/style/values/specified/transform.rs, components/style/properties/gecko.mako.rs, components/style/values/generics/transform.rs, components/style/gecko_bindings/sugar/ns_css_value.rs, components/style/properties/helpers/animated_properties.mako.rs and 3 more
  • @emilio: components/layout/fragment.rs, ports/geckolib/glue.rs, components/style/values/specified/transform.rs, components/style/properties/gecko.mako.rs, components/style/values/generics/transform.rs and 6 more
@highfive
Copy link

highfive commented Oct 4, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style and layout code, but no tests are modified. Please consider adding a test!
@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch from d7505bf to ac2d4f0 Oct 4, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Oct 10, 2017

The latest upstream changes (presumably #18808) made this pull request unmergeable. Please resolve the merge conflicts.

@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch 2 times, most recently from 12a0c5c to e2d7cf6 Oct 23, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Oct 27, 2017

The latest upstream changes (presumably #19042) made this pull request unmergeable. Please resolve the merge conflicts.

@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch 2 times, most recently from de3d9c6 to d9d3a64 Oct 30, 2017
@Manishearth Manishearth changed the title [WIP] Make transforms generic Make transforms generic Oct 31, 2017
@Manishearth
Copy link
Member Author

Manishearth commented Oct 31, 2017

r? @upsuper @BorisChiou @emilio

still have to test this, but the patches should be done

@highfive highfive assigned upsuper and unassigned mbrubeck Oct 31, 2017
@upsuper
Copy link
Member

upsuper commented Oct 31, 2017

I guess you can start a try run first?

@Manishearth
Copy link
Member Author

Manishearth commented Oct 31, 2017

I did.

@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch 4 times, most recently from eba9a1b to cf1581d Oct 31, 2017
@jdm
Copy link
Member

jdm commented Oct 31, 2017

There's a bunch of unit test build errors.

@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch from cf1581d to c579433 Oct 31, 2017
@Manishearth
Copy link
Member Author

Manishearth commented Oct 31, 2017

I'm aware, I've pushed up new tries

Manishearth added 10 commits Oct 30, 2017
…n gecko glue
See ToPrimitive() in StyleAnimationValue.cpp
@Manishearth Manishearth force-pushed the Manishearth:transform-generic branch from 2b3b3be to cb9645c Nov 2, 2017
@Manishearth
Copy link
Member Author

Manishearth commented Nov 2, 2017

@bors-servo r=emilio,xidorn

@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

📌 Commit cb9645c has been approved by emilio,xidorn

@highfive highfive assigned emilio and unassigned upsuper Nov 2, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

Testing commit cb9645c with merge c494d25...

bors-servo added a commit that referenced this pull request Nov 2, 2017
Make transforms generic

This makes the specified and computed value of transform share a generic
backing enum.

This will eventually be a complete fix for
https://bugzilla.mozilla.org/show_bug.cgi?id=1391145 , and also
incidentally fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1405881

Currently WIP -- the generic transform exists and is used, but this
currently misses some animation and glue cases.

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

bors-servo commented Nov 2, 2017

💔 Test failed - linux-rel-css

@Manishearth
Copy link
Member Author

Manishearth commented Nov 2, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

@bors-servo bors-servo merged commit cb9645c into servo:master Nov 2, 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
@Manishearth Manishearth deleted the Manishearth:transform-generic branch Nov 2, 2017
@hiikezoe
Copy link
Contributor

hiikezoe commented Nov 2, 2017

Awesome! Thank you Manish!

@emilio
Copy link
Member

emilio commented Nov 2, 2017

You didn't squash it though... :(

Oh well, thanks for landing this!

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.