refactor: add CanGc as argument to methods in CSSGroupingRule, CSSKeyframesRule, Crypto (#35743)

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-03-01 23:16:06 -08:00 committed by GitHub
parent 27970e1847
commit 67bd557f30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 21 deletions

View file

@ -44,9 +44,9 @@ impl Crypto {
impl CryptoMethods<crate::DomTypeHolder> for Crypto {
/// <https://w3c.github.io/webcrypto/#dfn-Crypto-attribute-subtle>
fn Subtle(&self) -> DomRoot<SubtleCrypto> {
fn Subtle(&self, can_gc: CanGc) -> DomRoot<SubtleCrypto> {
self.subtle
.or_init(|| SubtleCrypto::new(&self.global(), CanGc::note()))
.or_init(|| SubtleCrypto::new(&self.global(), can_gc))
}
#[allow(unsafe_code)]