Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate generic font family settings to a class
https://bugs.webkit.org/show_bug.cgi?id=117027 Reviewed by Andreas Kling. The new class is under platform/ and can be accessed by the font code directly without platform violations. * WebCore.xcodeproj/project.pbxproj: * page/Settings.cpp: (WebCore::invalidateAfterGenericFamilyChange): (WebCore::Settings::Settings): (WebCore::Settings::~Settings): (WebCore::Settings::create): (WebCore::Settings::standardFontFamily): (WebCore::Settings::setStandardFontFamily): (WebCore::Settings::fixedFontFamily): (WebCore::Settings::setFixedFontFamily): (WebCore::Settings::serifFontFamily): (WebCore::Settings::setSerifFontFamily): (WebCore::Settings::sansSerifFontFamily): (WebCore::Settings::setSansSerifFontFamily): (WebCore::Settings::cursiveFontFamily): (WebCore::Settings::setCursiveFontFamily): (WebCore::Settings::fantasyFontFamily): (WebCore::Settings::setFantasyFontFamily): (WebCore::Settings::pictographFontFamily): (WebCore::Settings::setPictographFontFamily): * page/Settings.h: * platform/graphics/FontGenericFamilies.cpp: Added. (WebCore::setGenericFontFamilyForScript): (WebCore::genericFontFamilyForScript): (WebCore::FontGenericFamilies::FontGenericFamilies): (WebCore::FontGenericFamilies::standardFontFamily): (WebCore::FontGenericFamilies::fixedFontFamily): (WebCore::FontGenericFamilies::serifFontFamily): (WebCore::FontGenericFamilies::sansSerifFontFamily): (WebCore::FontGenericFamilies::cursiveFontFamily): (WebCore::FontGenericFamilies::fantasyFontFamily): (WebCore::FontGenericFamilies::pictographFontFamily): (WebCore::FontGenericFamilies::setStandardFontFamily): (WebCore::FontGenericFamilies::setFixedFontFamily): (WebCore::FontGenericFamilies::setSerifFontFamily): (WebCore::FontGenericFamilies::setSansSerifFontFamily): (WebCore::FontGenericFamilies::setCursiveFontFamily): (WebCore::FontGenericFamilies::setFantasyFontFamily): (WebCore::FontGenericFamilies::setPictographFontFamily): * platform/graphics/FontGenericFamilies.h: Added. (WebCore::UScriptCodeHashTraits::emptyValue): (WebCore::UScriptCodeHashTraits::constructDeletedValue): (WebCore::UScriptCodeHashTraits::isDeletedValue): (WebCore::FontGenericFamilies::create): Canonical link: https://commits.webkit.org/135294@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
12 changed files
with
333 additions
and
55 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
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
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.