This method is not a virtual call, and also looks nicer. This patch was mostly generated by a Python script, but I manually cleaned up the code in a few places where statements didn't need to be split across multiple lines any more. MozReview-Commit-ID: 8JExxqSRc59