Commit c58996c
committed
CSS Font Loading API: Remove FontFaceSet constructor
https://bugs.webkit.org/show_bug.cgi?id=276794
rdar://132031306
Reviewed by Simon Fraser.
The FontFaceSet constructor was considered not useful
and is to be removed from the FontFaceSet interface
as per [1] resolution.
[1] w3c/csswg-drafts#10390
* LayoutTests/fast/text/font-face-api-preinstalled.html:
* LayoutTests/fast/text/font-face-set-document-expected.txt:
* LayoutTests/fast/text/font-face-set-document.html:
* LayoutTests/fast/text/font-face-set-javascript.html:
* LayoutTests/fast/text/font-loading-multiple-sets.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-add-css-connected-expected.txt: Removed.
* LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-add-css-connected.html: Removed.
Remove fontfaceset-add-css-connected.html as it fundamentally requires the FontFaceSet constructor to function. The test verifies that CSS-connected FontFace objects cannot be added to a separate FontFaceSet instance, but without the constructor, there is no way to create such a separate instance in a document context. This test scenario becomes impossible once the constructor is removed per the CSSWG resolution mentioned above [1].
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebCore/css/FontFaceSet.idl:
* Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:
(WebKit::defaultFontFaceSetConstructorEnabled):
* Source/WebKit/Shared/WebPreferencesDefaultValues.h:
* Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h:
* Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm:
(WebKit::defaultFontFaceSetConstructorEnabled):
Canonical link: https://commits.webkit.org/304912@main1 parent b7cff56 commit c58996c
File tree
13 files changed
+39
-42
lines changed- LayoutTests
- fast/text
- imported/w3c/web-platform-tests/css/css-font-loading
- Source
- WTF
- Scripts/Preferences
- wtf/cocoa
- WebCore/css
- WebKitLegacy/mac/WebView
13 files changed
+39
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3154 | 3154 | | |
3155 | 3155 | | |
3156 | 3156 | | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
3157 | 3171 | | |
3158 | 3172 | | |
3159 | 3173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
457 | 467 | | |
458 | 468 | | |
459 | 469 | | |
| |||
0 commit comments