style: Measure heap allocations hanging off selector components.

Bug: 1475191
Reviewed-by: emilio
MozReview-Commit-ID: D7vZQ7v8owS
This commit is contained in:
Cameron McCormack 2018-07-12 19:44:00 +10:00 committed by Emilio Cobos Álvarez
parent dd277be487
commit a41127152b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 89 additions and 16 deletions

View file

@ -40,7 +40,7 @@ macro_rules! pseudo_class_name {
(bare: [$(($css:expr, $name:ident, $gecko_type:tt, $state:tt, $flags:tt),)*],
string: [$(($s_css:expr, $s_name:ident, $s_gecko_type:tt, $s_state:tt, $s_flags:tt),)*]) => {
/// Our representation of a non tree-structural pseudo-class.
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq)]
pub enum NonTSPseudoClass {
$(
#[doc = $css]