servo/components/script_bindings
Oriol Brufau 0cdc1dcf72
Turn CSSStyleRule into a CSSGroupingRule subclass (#36254)
Note that `StyleRule` may not have the `CssRules` readily available,
they may need to be created. So the previous approach of providing
`CSSGroupingRule` with the `CssRules` is no good: it would require
writing them in advance, just in case they end up being used.

Therefore, this removes the `CSSGroupingRule::rules` field. Instead,
they are lazily obtained in `CSSGroupingRule::rulelist()` by downcasting
and calling the appropriate method for the subclass.

Testing: covered by WPT
Fixes: #36245

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-01 19:18:07 +00:00
..
codegen Implement CSSNestedDeclarations (#36248) 2025-04-01 11:20:46 +00:00
webidls Turn CSSStyleRule into a CSSGroupingRule subclass (#36254) 2025-04-01 19:18:07 +00:00
build.rs script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
callback.rs Move various reflector types and traits to script_bindings (#35279) 2025-02-04 06:58:08 +00:00
Cargo.toml Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
constant.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
conversions.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
error.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
finalize.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
inheritance.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
interfaces.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
iterable.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
lib.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
like.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
lock.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
num.rs Miscellaneous script splitting preparation changes (#36216) 2025-03-29 08:11:27 +00:00
proxyhandler.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
record.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00
reflector.rs Move various reflector types and traits to script_bindings (#35279) 2025-02-04 06:58:08 +00:00
root.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
script_runtime.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
str.rs Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
trace.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00
utils.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
weakref.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00