Don't create Range object if possible.

Range object was used inside getBaselinePoint() function only to
calculate bounding box for the given range.
It is possible to do it directly via ComputeTextRect() function.

No change in behavior, no new tests.

Bug: 388681
Change-Id: I5cf751308a14961c24c8d79ede447c4012cdf4c1
Reviewed-on: https://chromium-review.googlesource.com/549459
Commit-Queue: Yoshifumi Inoue <[email protected]>
Reviewed-by: Yoshifumi Inoue <[email protected]>
Cr-Commit-Position: refs/heads/master@{#483237}
1 file changed