mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Implement MallocSizeOf for markup5ever rather than xml5ever. (#34403)
The QualName type which MallocSizeOf is implemented for is a markup5ever type which is re-exported in both html5ever and xml5ever. Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
parent
ffca6abb3a
commit
a4caa0efcb
4 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ euclid = { workspace = true }
|
|||
http = { workspace = true }
|
||||
indexmap = { workspace = true }
|
||||
keyboard-types = { workspace = true }
|
||||
markup5ever = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_bytes = { workspace = true }
|
||||
servo_allocator = { path = "../allocator" }
|
||||
|
@ -34,4 +35,3 @@ url = { workspace = true }
|
|||
uuid = { workspace = true }
|
||||
webrender_api = { workspace = true }
|
||||
wr_malloc_size_of = { workspace = true }
|
||||
xml5ever = { workspace = true }
|
||||
|
|
|
@ -146,7 +146,7 @@ impl MallocSizeOf for keyboard_types::Key {
|
|||
}
|
||||
}
|
||||
|
||||
impl MallocSizeOf for xml5ever::QualName {
|
||||
impl MallocSizeOf for markup5ever::QualName {
|
||||
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
|
||||
self.prefix.size_of(ops) + self.ns.size_of(ops) + self.local.size_of(ops)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue