mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
27970e1847
commit
67bd557f30
4 changed files with 33 additions and 21 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue