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

It's slow.

r? @metajack