[iOS] Unify Font::platformCharWidthInit() with macOS
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Oct 2017 02:45:27 +0000 (02:45 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Oct 2017 02:45:27 +0000 (02:45 +0000)
commit4d6b3316183d872cedd338a45bd4b6ac7a3c7bf7
treeb716af2adc76d545fe7a35b3b1e5d9d8c1042883
parentfdeefed59a416d65c9cc150b92a5564bdac3b736
[iOS] Unify Font::platformCharWidthInit() with macOS
https://bugs.webkit.org/show_bug.cgi?id=178951
<rdar://problem/7848198>

Reviewed by Zalan Bujtas.

Source/WebCore:

The only reason these codepaths are different is because historically this codepath
didn't work with GS fonts (which we don't use anymore).

Tests: fast/forms/search-styled.html
       fast/forms/text-control-intrinsic-widths.html
       fast/forms/textarea-width.html

* platform/graphics/cocoa/FontCocoa.mm:
(WebCore::Font::platformCharWidthInit):

LayoutTests:

Updating expected results.

* platform/ios-wk2/fast/forms/search-styled-expected.txt: Removed.
* platform/ios-wk2/fast/forms/text-control-intrinsic-widths-expected.txt: Removed.
* platform/ios-wk2/fast/forms/textarea-width-expected.txt: Removed.
* platform/ios/fast/forms/search-styled-expected.txt:
* platform/ios/fast/forms/text-control-intrinsic-widths-expected.txt:
* platform/ios/fast/forms/textarea-width-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/ios-wk2/fast/forms/search-styled-expected.txt [deleted file]
LayoutTests/platform/ios-wk2/fast/forms/text-control-intrinsic-widths-expected.txt [deleted file]
LayoutTests/platform/ios-wk2/fast/forms/textarea-width-expected.txt [deleted file]
LayoutTests/platform/ios/fast/forms/search-styled-expected.txt
LayoutTests/platform/ios/fast/forms/text-control-intrinsic-widths-expected.txt
LayoutTests/platform/ios/fast/forms/textarea-width-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cocoa/FontCocoa.mm