Changeset 282204 in webkit
- Timestamp:
- Sep 9, 2021 2:38:41 AM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-has-expected.txt (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-has.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/FontFaceSet.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r282203 r282204 1 2021-09-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 FontFaceSet.has() needs to react to style changes 4 https://bugs.webkit.org/show_bug.cgi?id=229848 5 6 Reviewed by Antti Koivisto. 7 8 This test was landed upstream in https://github.com/web-platform-tests/wpt/pull/30322 9 10 * web-platform-tests/css/css-font-loading/fontfaceset-has-expected.txt: Added. 11 * web-platform-tests/css/css-font-loading/fontfaceset-has.html: Added. 12 1 13 2021-09-09 Cameron McCormack <heycam@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r282202 r282204 1 2021-09-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 FontFaceSet.has() needs to react to style changes 4 https://bugs.webkit.org/show_bug.cgi?id=229848 5 6 Reviewed by Antti Koivisto. 7 8 When content says "document.fonts.has(...)", the ".has(...)" part needs to 9 update style instead of the "document.fonts" part. This is because it's 10 totally legal for content to say: 11 12 var f = document.fonts; 13 // Modify style here 14 ... f.has(...) ... <=== This needs to reflect the style changes. 15 16 Test: imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-has.html 17 18 * css/FontFaceSet.cpp: 19 (WebCore::FontFaceSet::has const): 20 1 21 2021-09-09 Antti Koivisto <antti@apple.com> 2 22 -
trunk/Source/WebCore/css/FontFaceSet.cpp
r282049 r282204 108 108 bool FontFaceSet::has(FontFace& face) const 109 109 { 110 if (face.backing().cssConnection()) 111 m_backing->updateStyleIfNeeded(); 110 112 return m_backing->hasFace(face.backing()); 111 113 }
Note: See TracChangeset
for help on using the changeset viewer.