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

Update derive_more to v2.0.0 #117

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

JelteF
Copy link

@JelteF JelteF commented Feb 3, 2025

This updates derive_more to the most recent version. The main reason
I'm interested in doing this is so that the latest version will become
available on the Rust Playground. The derive_more crate is being
pulled due to selectors, but it pulls in an outdated version due to
selectors depending on that version.

See additional information here: rust-lang/rust-playground#1133

delan and others added 8 commits January 8, 2025 13:35
Any ancestors of this commit are from upstream mozilla-central, with
some filtering and renaming. Our patches and sync tooling start here.

The sync tooling has all been squashed into this commit, based on:
https://github.com/servo/stylo/commits/64731e10dc8ef87ef52aa2fb9f988c3b2530f3a7
This is a rebase of fbd6a14

Signed-off-by: Oriol Brufau <[email protected]>
Needed for slotchange events

Signed-off-by: Simon Wülker <[email protected]>
…#109)

When we are trying to interpolate two values that can't be interpolated
according to the animation type of the CSS property, CSS animations
should always fall back to discrete interpolation, and CSS transitions
should also do so when `transition-behavior` is `allow-discrete`.

Signed-off-by: Oriol Brufau <[email protected]>
A property may have an animation type different than 'discrete', but
still not be able to interpolate some values. In that case animations
fall back to discrete interpolation, but transitions can only do so if
allowed by `transition-behavior`.

We were already handling that well, but we were still triggering
`transitionstart` events even if no transition ended up happening.
This patchs prevents the creation of the transition, and simplifies
a bunch of code since we no longer need to check whether the transition
is allowed while the transition runs.

Signed-off-by: Oriol Brufau <[email protected]>
This way the callers don't have to clone it if they don't have ownership
or want to use the value later.

Signed-off-by: Oriol Brufau <[email protected]>
This updates `derive_more` to the most recent version. The main reason
I'm interested in doing this is so that the latest version will become
available on the Rust Playground. The `derive_more` crate is being
pulled due to selectors, but it pulls in an outdated version due to
selectors depending on that version.
@Loirooriol
Copy link
Contributor

In general we try to not diverge from upstream if possible.
Could you do the upgrade in Gecko? Then we will import the change here.
See https://hg.mozilla.org/mozilla-central/rev/6f3f7162c687dcdc926008cb62f320f10735d917 for reference

@JelteF
Copy link
Author

JelteF commented Feb 4, 2025

Thanks for the pointer. I submitted it here now: https://phabricator.services.mozilla.com/D236782

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