From 736323a7796594a5b966ab6ae690e5cc51225a14 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 11 Nov 2015 16:35:58 -0600 Subject: [PATCH] Made DOMString implement HeapSizeOf. We have to do this by hand because DOMString is defined in util. --- components/util/mem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/util/mem.rs b/components/util/mem.rs index c5c242de825..36c2294a876 100644 --- a/components/util/mem.rs +++ b/components/util/mem.rs @@ -103,7 +103,7 @@ impl HeapSizeOf for String { impl HeapSizeOf for DOMString { fn heap_size_of_children(&self) -> usize { - self.0.heap_size_of_children() + heap_size_of(self.as_ptr() as *const c_void) } }