mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
committed by
GitHub
parent
4876a49eba
commit
20265ced1d
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user