mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Made DOMString implement HeapSizeOf.
We have to do this by hand because DOMString is defined in util.
This commit is contained in:
parent
c8af5b68fa
commit
736323a779
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue