servo/components/style/properties
bors-servo 7f4cb1861b Auto merge of #18452 - nnethercote:bug-1398737, r=jdm
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.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because tested on Gecko side.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18452)
<!-- Reviewable:end -->
2017-09-11 22:11:25 -05:00
..
helpers Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
longhand Auto merge of #18451 - Manishearth:stylo-calc-fontsize, r=emilio 2017-09-11 21:01:57 -05:00
shorthand style: Properly use integers on grid properties, and derive ToComputedValue. 2017-09-11 11:29:27 +02:00
build.py Remove testing feature from style crate 2017-08-07 14:30:31 -07:00
computed_value_flags.rs style: Stop the cascade when only reset structs change. 2017-09-06 12:56:29 +02:00
data.py Introduce values::animated::Animate 2017-08-22 09:41:01 +02:00
declaration_block.rs Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
gecko.mako.rs stylo: Replace FontComputationData with typedef 2017-09-11 17:29:39 -07:00
helpers.mako.rs style: Remove the special-case in single_keyword_computed. 2017-09-11 11:22:18 +02:00
Mako-0.9.1.zip Revert "Remove mako.zip" 2016-09-04 12:52:30 +08:00
properties.html.mako Move Mako-related files into a new sub-directory. 2016-04-20 14:49:27 +02:00
properties.mako.rs Auto merge of #18452 - nnethercote:bug-1398737, r=jdm 2017-09-11 22:11:25 -05:00