Fix the calculation of default vertical metrics

Fixes <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=849627">bug 849627</a> and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=849628">849628</a>.
The current code was obviously wrong per the spec 9.7.4.3.