diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-11 16:35:58 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-12 17:52:59 -0600 |
commit | 736323a7796594a5b966ab6ae690e5cc51225a14 (patch) | |
tree | 7f943daa908cc973c188ee82f7b4e7ae4f5a236f /components/util/mem.rs | |
parent | c8af5b68faa80967284fbc457643b68eece9cfa2 (diff) | |
download | servo-736323a7796594a5b966ab6ae690e5cc51225a14.tar.gz servo-736323a7796594a5b966ab6ae690e5cc51225a14.zip |
Made DOMString implement HeapSizeOf.
We have to do this by hand because DOMString is defined in util.
Diffstat (limited to 'components/util/mem.rs')
-rw-r--r-- | components/util/mem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |