Expose -apple-system as a font family
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 May 2015 01:56:32 +0000 (01:56 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 May 2015 01:56:32 +0000 (01:56 +0000)
commit0564e19d68b03e33715da21cb983d3c40fdadbb4
tree2b39871c05ebf7fc518ccb366f5a87c0729f30be
parente671cc25db3dbb7f7e6162ac4c290417619c7360
Expose -apple-system as a font family
https://bugs.webkit.org/show_bug.cgi?id=144484
<rdar://problem/20767330>

Reviewed by Tim Horton.

Source/WebCore:

Accept "-apple-system" for the font-family property, and
rename "-apple-system-font-monospaced-numbers" to
"-apple-system-monospaced-numbers".

Also change the media controls to use the new name.

Covered by existing tests and this new one:
    fast/text/system-font-legacy-name.html

* Modules/mediacontrols/mediaControlsApple.css:
(audio::-webkit-media-controls-time-remaining-display):
* Modules/mediacontrols/mediaControlsiOS.css:
(::-webkit-media-controls):
(audio::-webkit-media-controls-time-remaining-display):
(audio::-webkit-media-controls-status-display):
* platform/graphics/ios/FontCacheIOS.mm: Add support for the new name.
(WebCore::createCTFontWithFamilyNameAndWeight):
* platform/graphics/mac/FontCacheMac.mm: Ditto.
(WebCore::fontWithFamily):

LayoutTests:

Change a bunch of tests to use "-apple-system" instead
of "-apple-system-font" for font-family.

Add a test to make sure the old name still works.

* fast/text/system-font-legacy-name.html
* platform/ios-simulator/fast/text/system-monospaced-numbers.html:
* platform/ios-simulator/ios/fast/text/apple-logo-expected.txt:
* platform/ios-simulator/ios/fast/text/apple-logo.html:
* platform/ios-simulator/ios/fast/text/opticalFont-expected.txt:
* platform/ios-simulator/ios/fast/text/opticalFont.html:
* platform/ios-simulator/ios/fast/text/opticalFontWithWeight-expected.txt:
* platform/ios-simulator/ios/fast/text/opticalFontWithWeight.html:
* platform/ios-simulator/ios/fast/text/underline-scaling-expected.txt:
* platform/ios-simulator/ios/fast/text/underline-scaling.html:
* platform/mac/fast/text/systemFont-expected.txt:
* platform/mac/fast/text/systemFont.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/text/system-font-legacy-name-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/system-font-legacy-name.html [new file with mode: 0644]
LayoutTests/platform/ios-simulator/fast/text/system-monospaced-numbers.html
LayoutTests/platform/ios-simulator/ios/fast/text/apple-logo-expected.txt
LayoutTests/platform/ios-simulator/ios/fast/text/apple-logo.html
LayoutTests/platform/ios-simulator/ios/fast/text/opticalFont-expected.txt
LayoutTests/platform/ios-simulator/ios/fast/text/opticalFont.html
LayoutTests/platform/ios-simulator/ios/fast/text/opticalFontWithWeight-expected.txt
LayoutTests/platform/ios-simulator/ios/fast/text/opticalFontWithWeight.html
LayoutTests/platform/ios-simulator/ios/fast/text/underline-scaling-expected.txt
LayoutTests/platform/ios-simulator/ios/fast/text/underline-scaling.html
LayoutTests/platform/mac/fast/text/systemFont-expected.txt
LayoutTests/platform/mac/fast/text/systemFont.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css
Source/WebCore/platform/graphics/ios/FontCacheIOS.mm
Source/WebCore/platform/graphics/mac/FontCacheMac.mm