servo/components/malloc_size_of
Nicholas Nethercote eeed0b17eb Fix MallocSizeOf for TypedSize2D.
TypedSize2D's MallocSizeOf impl has two problems.

- It measures `width` twice, and `height` not at all.

- It erroneously asserts that `width` and `height` are scalars. This
  seems reasonable at first blush, but Stylo uses
  `BorderRadius<LengthAndPercentage>` which contains a
  `TypedSize2D<LengthAndPercentage, UnknownUnit>`, and
  `LengthAndPercentage` is non-scalar.

This patch fixes both of these problems, and also removes a low-value
`use` statement.
2017-09-21 09:06:20 +10:00
..
Cargo.toml Preserve sourceURL comment on style sheets 2017-09-14 12:39:18 -06:00
lib.rs Fix MallocSizeOf for TypedSize2D. 2017-09-21 09:06:20 +10:00
LICENSE-APACHE Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
LICENSE-MIT Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00