aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textmetrics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/textmetrics.rs')
-rw-r--r--components/script/dom/textmetrics.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/textmetrics.rs b/components/script/dom/textmetrics.rs
index 0e5cb0c89f5..f31b2700015 100644
--- a/components/script/dom/textmetrics.rs
+++ b/components/script/dom/textmetrics.rs
@@ -78,6 +78,7 @@ impl TextMetrics {
hangingBaseline: f64,
alphabeticBaseline: f64,
ideographicBaseline: f64,
+ can_gc: CanGc,
) -> DomRoot<TextMetrics> {
reflect_dom_object(
Box::new(TextMetrics::new_inherited(
@@ -95,7 +96,7 @@ impl TextMetrics {
ideographicBaseline,
)),
global,
- CanGc::note(),
+ can_gc,
)
}
}