servo/components/style/gecko
Nicholas Nethercote 6d5b1242db Introduce and start using the MallocSizeOf trait.
MallocSizeOf is similar to the existing HeapSizeOf trait from the
heapsize crate. The only difference is that MallocSizeOf's
malloc_size_of_children() function takes an additional MallocSizeOfFn
argument, which is used to measure heap blocks. This extra argument
makes MallocSizeOf match how Gecko's memory measurements work, and is
required for Stylo to integrate with DMD.

The patch also introduces a second trait, MallocSizeOfWithGuard, which
is much the same as MallocSizeOf, but with a |guard| argument for the
global style lock.

Finally, the patch uses the new traits to measure a small amount of
Stylo's memory usage.
2017-05-29 10:16:55 +10:00
..
generated Introduce and start using the MallocSizeOf trait. 2017-05-29 10:16:55 +10:00
arc_types.rs Implement CSSKeyframesRule and CSSKeyframeRule for stylo. 2017-05-19 13:56:57 +10:00
conversions.rs Use Rect in InsetRect 2017-05-25 17:27:19 +02:00
data.rs style: Use a FnvHashMap for ExtraStyleData, and remove unused stuff from PerDocumentStyleDataImpl. 2017-05-23 14:47:18 +02:00
global_style_data.rs Allow forcing a style threadpool of size 1. 2017-05-18 16:18:12 +02:00
media_queries.rs Move root_font_size to the device 2017-05-25 13:32:34 -07:00
mod.rs Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn 2017-05-16 02:53:41 +02:00
non_ts_pseudo_class_list.rs stylo: Parse but never match :-moz-placeholder as a pseudo-class. 2017-05-22 11:47:17 +02:00
pseudo_element.rs Rollup merge of #17010 - CJKu:bug-1348490, r=emilio 2017-05-24 11:59:25 -07:00
pseudo_element_definition.mako.rs Bug 1364412: Expose pseudo-element flags, and properly reject pseudos in non-UA sheets. r=bholley 2017-05-16 02:53:43 +02:00
regen_atoms.py Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn 2017-05-16 02:53:41 +02:00
restyle_damage.rs style: Use RestyleDamage to determine whether we must continue cascading style changes to children. 2017-05-20 16:25:39 +02:00
rules.rs stylo: Support font-variation-settings 2017-05-27 10:47:43 -07:00
selector_parser.rs stylo: Parse but never match :-moz-placeholder as a pseudo-class. 2017-05-22 11:47:17 +02:00
snapshot.rs Auto merge of #16915 - servo:attr-selectors, r=nox,emilio 2017-05-18 18:45:20 -05:00
snapshot_helpers.rs Relax the requirement of Atom::with. 2017-05-16 14:42:45 +10:00
traversal.rs Do the sequential traversal breadth-first. 2017-04-09 14:52:49 +08:00
url.rs Stylo: Let SpecifiedUrl be able to carry ImageValue. 2017-05-16 01:42:30 +08:00
values.rs Add support for symbols() function. 2017-05-27 20:45:58 +10:00
wrapper.rs style: Add support for resolving default computed styles. 2017-05-25 14:19:59 +08:00