style: Split up push_applicable_declarations.

Introduce RuleCollector, which contains all the state we need during the
cascade, and allows to reuse a bit of code.

Differential Revision: https://phabricator.services.mozilla.com/D11233
This commit is contained in:
Emilio Cobos Álvarez 2018-11-08 23:07:40 +00:00
parent b7cefa5814
commit 667457a16c
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 426 additions and 293 deletions

View file

@ -143,6 +143,7 @@ pub mod media_queries;
pub mod parallel;
pub mod parser;
pub mod rule_cache;
pub mod rule_collector;
pub mod rule_tree;
pub mod scoped_tls;
pub mod selector_map;