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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/textmetrics.rs b/components/script/dom/textmetrics.rs
index 338edd023f2..6f7af09809e 100644
--- a/components/script/dom/textmetrics.rs
+++ b/components/script/dom/textmetrics.rs
@@ -98,7 +98,7 @@ impl TextMetrics {
}
}
-impl TextMetricsMethods for TextMetrics {
+impl TextMetricsMethods<crate::DomTypeHolder> for TextMetrics {
/// <https://html.spec.whatwg.org/multipage/#dom-textmetrics-width>
fn Width(&self) -> Finite<f64> {
self.width