Add support for borders on inline elements.

Fix ahem reftests on mac, by disabling text AA in reftest mode.

Also fix precision issues in font metrics to correct height
and baseline calculations.
Merge pull request #3182 from glennw/inline-text-border

Add support for borders on inline elements