servo/components/style/invalidation
Nicholas Nethercote 32548e5312 Overhaul MallocSizeOf and related things.
This patch makes the MallocSizeOf stuff in Stylo work more like the HeapSizeOf
stuff already in Servo, except better. In particular, it adds deriving support
for MallocSizeOf, which will make it easier to improve coverage.

The patch does the following.

- Combines servo/components/style/stylesheets/memory.rs and the heapsize crate
  into a new crate, malloc_size_of.

- Forks the heapsize_derive crate, calling it malloc_size_of, so that
  MallocSizeOf can be derived.

- Both the new crates have MIT/Apache licenses, like heapsize, in case they are
  incorporated into heapsize in the future.

- Renames the methods within MallocSizeOf and the related traits so they are
  more concise.

- Removes MallocSizeOfWithGuard.

- Adds `derive(MallocSizeOf)` to a lot of types, in some cases replacing an
  equivalent or almost-equivalent hand-written implementation.

- Adds stuff so that Rc/Arc can be handled properly.
2017-09-12 12:37:51 +10:00
..
element Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
media_queries.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
mod.rs style: Implement a more fine-grained invalidation method. 2017-06-13 13:26:41 +02:00
stylesheets.rs style: Reword a TODO in the stylesheet invalidation code. 2017-09-09 00:10:00 +02:00