aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
authorDomenico Rizzo <domenico.rizzo@gmail.com>2024-12-13 16:51:59 +0100
committerGitHub <noreply@github.com>2024-12-13 15:51:59 +0000
commit0e9746fbbec1ffb843d19e44e2729d5ad2b7479a (patch)
treec3b4d2266273cac0a745609b3d711d2b40377cfc /components/script/dom/performanceentry.rs
parent471d3572b77be4df31ce5d6a20d522eb9ffdbe7f (diff)
downloadservo-0e9746fbbec1ffb843d19e44e2729d5ad2b7479a.tar.gz
servo-0e9746fbbec1ffb843d19e44e2729d5ad2b7479a.zip
Add CanGc argument to reflect_dom_object (#34606)
* applied mach fmt Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Refinements Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Modified reflect_dom_object signature and all its calls Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> * fix function calls when parameter is passed up Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> --------- Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
Diffstat (limited to 'components/script/dom/performanceentry.rs')
-rw-r--r--components/script/dom/performanceentry.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/performanceentry.rs b/components/script/dom/performanceentry.rs
index 30a6779c876..ee639856894 100644
--- a/components/script/dom/performanceentry.rs
+++ b/components/script/dom/performanceentry.rs
@@ -13,6 +13,7 @@ use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct PerformanceEntry {
@@ -53,7 +54,7 @@ impl PerformanceEntry {
duration: Duration,
) -> DomRoot<PerformanceEntry> {
let entry = PerformanceEntry::new_inherited(name, entry_type, Some(start_time), duration);
- reflect_dom_object(Box::new(entry), global)
+ reflect_dom_object(Box::new(entry), global, CanGc::note())
}
pub fn entry_type(&self) -> &DOMString {