script: Allow for implicit cx for setters (#43524)

Rather than specifying a cx for every single CSS property from Stylo, we
instead make it implicit. This allows us to remove the `CanGc::note()`
from the macro and pass in the `cx` as normal.

We can use a similar approach for setters in other elements where we use
the setter macros.

Part of #42812

Testing: It compiles

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-04-04 08:46:13 +02:00
committed by GitHub
parent 4876a49eba
commit 20265ced1d
5 changed files with 24 additions and 24 deletions

View File

@@ -610,10 +610,10 @@ pub(crate) fn handle_modify_rule(
for modification in modifications {
let _ = style.SetProperty(
cx,
modification.name.into(),
modification.value.into(),
modification.priority.into(),
CanGc::from_cx(cx),
);
}
}