style: Reduce allocations in selector matching.

This is a 27% improvement in CSS selector matching performance.
auto merge of #1393 : pcwalton/servo/optimize-css, r=pcwalton

This is a 27% improvement in CSS selector matching performance.

r? @SimonSapin