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

It's slow.
auto merge of #1563 : pcwalton/servo/profile-cascade, r=larsbergstrom

It's slow.

r? @metajack