Fix #1139: refactor return types in selector parsing code.
auto merge of #1147 : SimonSapin/servo/refactor-selector-parsing, r=pcwalton