MacViews: Fix vertical alignment of text rendering.
commitf5e4c6f833e41a25ba4f3af217fda72825476d7b
authorandresantoso@chromium.org <andresantoso@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 9 Aug 2014 00:31:08 +0000 (9 00:31 +0000)
committerandresantoso@chromium.org <andresantoso@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 9 Aug 2014 00:32:20 +0000 (9 00:32 +0000)
tree4818104d2dfae898bf9a601b2c977ac0f4b5bd22
parent06f4eb15e53dcb42702a28c55b77a009c2cdb324
MacViews: Fix vertical alignment of text rendering.

NSFont returns fractional values for font metrics. We were truncating the
values, causing text to appear too high vertically. The fix is to apply the
ceiling function instead.

BUG=401345

Review URL: https://codereview.chromium.org/445363006

Cr-Commit-Position: refs/heads/master@{#288479}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288479 0039d316-1c4b-4281-b951-d872f2087c98
ui/gfx/platform_font_mac.mm