Made DOMString implement HeapSizeOf.

We have to do this by hand because DOMString is defined in util.
This commit is contained in:
Alan Jeffrey 2015-11-11 16:35:58 -06:00
parent c8af5b68fa
commit 736323a779

View file

@ -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)
}
}