gecko-dev/servo/ports/geckolib
Boris Chiou d975b03929 Bug 1834876 - Part 2: Resolve starting style if we don't have before-change style. r=layout-reviewers,firefox-style-system-reviewers,emilio
Per spec, we define starting style for an element as the after-change style
with @starting-style rules applied in addition.

If an element does not have a before-change style for a given style change
event, the starting style is used instead of the before-change style to
compare with the after-change style to start transitions.

The basic idea in this patch is:
1. We add a flag to indicate if this element may have starting style. We
   set this flag during its full matching, and store this flag in the
   element data.
2. So during process animations, we check this flag, if this element may
   have starting style and specifies transitions, we resolve the
   starting style. Use it as the before-change style.

The implmentation in process_animations() and tests are in the following
patches.

Differential Revision: https://phabricator.services.mozilla.com/D208570
2024-04-30 05:06:53 +00:00
..
tests Bug 1848170: Use fully-computed piecewise linear function for both computed and specified value. r=emilio 2023-08-15 13:26:25 +00:00
Cargo.toml Bug 1864817 - initialize STYLE_THREAD_POOL in Sevo_initialize. r=emilio,jesup 2024-02-22 10:43:49 +00:00
cbindgen.toml Bug 1893127 - Back out bug 1881220 for causing worse regressions than the problem it was fixing. r=layout-reviewers,firefox-style-system-reviewers,boris 2024-04-27 22:42:42 +00:00
error_reporter.rs Bug 1865563 - Rustfmt servo/. r=firefox-style-system-reviewers,emilio 2023-11-20 15:17:57 +00:00
glue.rs Bug 1834876 - Part 2: Resolve starting style if we don't have before-change style. r=layout-reviewers,firefox-style-system-reviewers,emilio 2024-04-30 05:06:53 +00:00
lib.rs Bug 1864817 - initialize STYLE_THREAD_POOL in Sevo_initialize. r=emilio,jesup 2024-02-22 10:43:49 +00:00
stylesheet_loader.rs Bug 1847440 - Always store relative line numbers in CSS rules. r=zrhoffman 2023-08-16 09:37:27 +00:00