mozilla/servo — pull request #2372 by mrobinson (2014-05-08 20:39:31+00:00)
Title: Use == instead of match for tests against a single enum value

The performance of using == should now equal that of match, so many
identity methods can be simplified to a single line.

Fixes #1596.