Replace toCTFontRef and toNSFont with utils from base/mac/foundation_util.h

Use base::mac::NSToCFCast and base::mac::CFToNSCast instead, and remove
these other two font-specific helper functions.

This is a follow-up CL to the patch landed in https://crrev.com/c/1494667.

Bug: 929973
Change-Id: I1922c9a20621e37ebcba660449bd789da3c8ca23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1511296
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#639034}
6 files changed