mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
layout: Profile the CSS cascade as well as selector matching.
It's slow.
This commit is contained in:
parent
edda06115a
commit
55ccfae1e8
2 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue