Font metrics reported by DirectWrite are a touch larger than those reported by GDI on Windows.
As a result the selection rectangle in RenderText at times fills the textfield completely leading to ugliness.
The fix is to ensure that the RenderText centering baseline which is used to calculate the line offsets is greater than the font list baseline. This is achieved by
calculating the baseline shift via a floating point division and rounding up.
BUG=445366
TEST=Covered by gfx_unittest RenderTextTest.CenteringBaselineTest, RenderTestText.CenteringBaselineTestForUniscribeFonts
Review URL: https://codereview.chromium.org/
855763002
Cr-Commit-Position: refs/heads/master@{#312753}