Repository navigation
stylo: Optimize Animation::iterate() into Animation::iterate_by() - #45978
Merged
Merged
Conversation
|
🔨 Triggering try run (#28174717121) for Linux (WPT) |
|
Test results for linux-wpt from try job (#28174717121): Flaky unexpected result (50)
Stable unexpected results that are known to be intermittent (19)
Stable unexpected results (27)
|
|
|
Loirooriol
force-pushed
the
optimize-animation-iterate
branch
from
June 25, 2026 19:12
52c8de3 to
6f46091
Compare
|
🔨 Triggering try run (#28194311059) for Linux (WPT) |
|
Test results for linux-wpt from try job (#28194311059): Flaky unexpected result (41)
Stable unexpected results that are known to be intermittent (18)
|
|
✨ Try run (#28194311059) succeeded. |
Loirooriol
marked this pull request as ready for review
June 25, 2026 20:08
mrobinson
approved these changes
Jun 26, 2026
Bump Stylo to servo/stylo#400 Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
force-pushed
the
optimize-animation-iterate
branch
from
June 26, 2026 08:03
6f46091 to
dcd0938
Compare
Loirooriol
added a commit
to Loirooriol/stylo
that referenced
this pull request
Jun 26, 2026
…#400) This method was performing a single iteration. But most callers want to perform multiple iterations, so they were calling it in a loop. So this patch replaces `iterate()` with `iterate_by()`, which takes the desired number of iterations as a parameter, and returns the actual number of iterations that were performed. Servo PR: servo/servo#45978 Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Jun 26, 2026
…servo#45978) Bump Stylo to servo/stylo#400 Testing: Not needed, no change in behavior Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Jun 26, 2026
…servo#45978) Bump Stylo to servo/stylo#400 Testing: Not needed, no change in behavior Signed-off-by: Oriol Brufau <[email protected]>
Contributor
Author
Actually, let's test that the browser doesn't freeze: #46062 |
pull Bot
pushed a commit
to Patreos998/servo
that referenced
this pull request
Jun 29, 2026
Before servo#45978, this test would freeze the browser, because `1e16 - 1.0 == 1e16`, so the loop would never end. Testing: Just adding a test Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
added a commit
to servo/stylo
that referenced
this pull request
Jul 1, 2026
This method was performing a single iteration. But most callers want to perform multiple iterations, so they were calling it in a loop. So this patch replaces `iterate()` with `iterate_by()`, which takes the desired number of iterations as a parameter, and returns the actual number of iterations that were performed. Servo PR: servo/servo#45978 Signed-off-by: Oriol Brufau <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump Stylo to servo/stylo#400
Testing: Not needed, no change in behavior