Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creation of a CSSFontSelector with a non-Document ScriptExecuti…
…onContext https://bugs.webkit.org/show_bug.cgi?id=222735 Reviewed by Darin Adler. Replace Document member of CSSFontSelector with a ScriptExecutionContext. This also changes make_names.pl string header generation to allow for easier enumeration of font family strings. No new tests as new behaviour is currently unused. Existing behaviour covered by existing tests. * bindings/scripts/StaticString.pm: (GenerateStrings): Revert change from bug 222552 * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::CSSFontSelector): (WebCore::m_version): (WebCore::CSSFontSelector::fontFaceSet): (WebCore::CSSFontSelector::addFontFaceRule): (WebCore::CSSFontSelector::fontStyleUpdateNeeded): (WebCore::CSSFontSelector::resolveGenericFamily): (WebCore::CSSFontSelector::fontRangesForFamily): (WebCore::CSSFontSelector::stopLoadingAndClearFonts): (WebCore::CSSFontSelector::beginLoadingFontSoon): (WebCore::CSSFontSelector::loadPendingFonts): (WebCore::CSSFontSelector::fontLoadingTimerFired): (WebCore::CSSFontSelector::fallbackFontCount): (WebCore::CSSFontSelector::fallbackFontAt): * css/CSSFontSelector.h: * css/FontFaceSet.cpp: (WebCore::FontFaceSet::create): (WebCore::FontFaceSet::FontFaceSet): * css/FontFaceSet.h: * css/FontFaceSet.idl: * dom/Document.h: * dom/ScriptExecutionContext.h: * dom/make_names.pl: (printNamesHeaderFile): Make global string data and names accessible via a Vector and add an enum of name indices. * platform/graphics/FontGenericFamilies.cpp: (WebCore:: const): * platform/graphics/FontGenericFamilies.h: Canonical link: https://commits.webkit.org/235005@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Chris Lord
committed
Mar 8, 2021
1 parent
e730ca1
commit d56fc20
Showing
12 changed files
with
199 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.