From a741c48dc2426f78fbfa020c822943f7a13b4f62 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Fri, 21 Feb 2025 22:16:37 -0800 Subject: [PATCH] refactor: add CanGc as argument to ByteLengthQueuingStrategy::GetSize (#35594) Signed-off-by: Yerkebulan Tulibergenov --- components/script/dom/bytelengthqueuingstrategy.rs | 2 +- components/script_bindings/codegen/Bindings.conf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/script/dom/bytelengthqueuingstrategy.rs b/components/script/dom/bytelengthqueuingstrategy.rs index b4916879c7f..6ebffe81314 100644 --- a/components/script/dom/bytelengthqueuingstrategy.rs +++ b/components/script/dom/bytelengthqueuingstrategy.rs @@ -62,7 +62,7 @@ impl ByteLengthQueuingStrategyMethods for ByteLengthQueuin } /// - fn GetSize(&self) -> Fallible> { + fn GetSize(&self, _can_gc: CanGc) -> Fallible> { let global = self.global(); // Return this's relevant global object's byte length queuing strategy // size function. diff --git a/components/script_bindings/codegen/Bindings.conf b/components/script_bindings/codegen/Bindings.conf index 4cf1e8fa039..f5e61114a4b 100644 --- a/components/script_bindings/codegen/Bindings.conf +++ b/components/script_bindings/codegen/Bindings.conf @@ -66,6 +66,10 @@ DOMInterfaces = { 'canGc': ['GetCharacteristic', 'GetCharacteristics', 'GetIncludedService', 'GetIncludedServices'], }, +'ByteLengthQueuingStrategy': { + 'canGc': ['GetSize'], +}, + 'CanvasGradient': { 'canGc': ['AddColorStop'], },