layout: Profile the CSS cascade as well as selector matching.

It's slow.
This commit is contained in:
Patrick Walton 2014-01-25 18:13:59 -08:00
parent edda06115a
commit 55ccfae1e8
2 changed files with 7 additions and 3 deletions

View file

@ -522,6 +522,8 @@ impl LayoutTask {
_ => {
profile(time::LayoutSelectorMatchCategory, self.profiler_chan.clone(), || {
node.match_subtree(self.stylist.clone());
});
profile(time::LayoutSelectorCascadeCategory, self.profiler_chan.clone(), || {
node.cascade_subtree(None);
});
}