mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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 {
|
impl HeapSizeOf for DOMString {
|
||||||
fn heap_size_of_children(&self) -> usize {
|
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