aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceobserver.rs
diff options
context:
space:
mode:
authorArya Nair <aryaajitnair@gmail.com>2025-03-19 23:33:09 +0530
committerGitHub <noreply@github.com>2025-03-19 18:03:09 +0000
commitcb56ac8561ab4f27d0268881e7c95ee57a2eadfe (patch)
treef1d73e3b202a8d06ce988578cc0ee355a451d7be /components/script/dom/performanceobserver.rs
parent0917e080df769011f6fd4348d63f8fd5895baa21 (diff)
downloadservo-cb56ac8561ab4f27d0268881e7c95ee57a2eadfe.tar.gz
servo-cb56ac8561ab4f27d0268881e7c95ee57a2eadfe.zip
feat: add can_gc argument to to_frozen_array (#36043)
* feat: add can_gc argument to to_frozen_array Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * fix: linting issues Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * feat: add can_gc in binding.conf Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * fix: linting issues Signed-off-by: Arya Nair <aryaajitnair@gmail.com> --------- Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
Diffstat (limited to 'components/script/dom/performanceobserver.rs')
-rw-r--r--components/script/dom/performanceobserver.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/performanceobserver.rs b/components/script/dom/performanceobserver.rs
index 25c3f0139fc..397069dd028 100644
--- a/components/script/dom/performanceobserver.rs
+++ b/components/script/dom/performanceobserver.rs
@@ -141,10 +141,15 @@ impl PerformanceObserverMethods<crate::DomTypeHolder> for PerformanceObserver {
}
// https://w3c.github.io/performance-timeline/#supportedentrytypes-attribute
- fn SupportedEntryTypes(cx: JSContext, global: &GlobalScope, retval: MutableHandleValue) {
+ fn SupportedEntryTypes(
+ cx: JSContext,
+ global: &GlobalScope,
+ can_gc: CanGc,
+ retval: MutableHandleValue,
+ ) {
// While this is exposed through a method of PerformanceObserver,
// it is specified as associated with the global scope.
- global.supported_performance_entry_types(cx, retval)
+ global.supported_performance_entry_types(cx, retval, can_gc)
}
// https://w3c.github.io/performance-timeline/#dom-performanceobserver-observe()