aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/range.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r--components/script/dom/range.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs
index c5664874b7d..bf810546be8 100644
--- a/components/script/dom/range.rs
+++ b/components/script/dom/range.rs
@@ -26,6 +26,7 @@ use std::cmp::{Ord, Ordering, PartialEq, PartialOrd};
use std::rc::Rc;
#[dom_struct]
+#[derive(HeapSizeOf)]
pub struct Range {
reflector_: Reflector,
inner: Rc<RefCell<RangeInner>>,
@@ -682,6 +683,7 @@ impl<'a> RangeMethods for &'a Range {
#[derive(JSTraceable)]
#[must_root]
#[privatize]
+#[derive(HeapSizeOf)]
pub struct RangeInner {
start: BoundaryPoint,
end: BoundaryPoint,
@@ -816,6 +818,7 @@ impl RangeInner {
#[derive(JSTraceable)]
#[must_root]
#[privatize]
+#[derive(HeapSizeOf)]
pub struct BoundaryPoint {
node: JS<Node>,
offset: u32,