Changeset 282015 in webkit
- Timestamp:
- Sep 3, 2021 1:03:18 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/FontFaceSet-status-after-style-update-expected.txt (added)
-
LayoutTests/fast/text/FontFaceSet-status-after-style-update.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/FontFaceSet.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r282008 r282015 1 2021-09-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 FontFaceSet.status needs to react to style changes 4 https://bugs.webkit.org/show_bug.cgi?id=229839 5 6 Reviewed by Sam Weinig. 7 8 This is not a WPT test because it requires internals.invalidateFontCache(). 9 10 * fast/text/FontFaceSet-status-after-style-update-expected.txt: Added. 11 * fast/text/FontFaceSet-status-after-style-update.html: Added. 12 1 13 2021-09-03 Ziran Sun <zsun@igalia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r282008 r282015 1 2021-09-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 FontFaceSet.status needs to react to style changes 4 https://bugs.webkit.org/show_bug.cgi?id=229839 5 6 Reviewed by Sam Weinig. 7 8 When content says "document.fonts.status", the ".status" 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.status ... <=== This needs to reflect the style changes. 15 16 Test: fast/text/FontFaceSet-status-after-style-update.html 17 18 * css/FontFaceSet.cpp: 19 (WebCore::FontFaceSet::status const): 20 1 21 2021-09-03 Ziran Sun <zsun@igalia.com> 2 22 -
trunk/Source/WebCore/css/FontFaceSet.cpp
r281975 r282015 194 194 auto FontFaceSet::status() const -> LoadStatus 195 195 { 196 switch (m_backing->status()) { 196 Ref protect = m_backing; 197 protect->updateStyleIfNeeded(); 198 199 switch (protect->status()) { 197 200 case CSSFontFaceSet::Status::Loading: 198 201 return LoadStatus::Loading;
Note: See TracChangeset
for help on using the changeset viewer.