This commit is contained in:
Shelley Vohr 2023-04-13 15:54:41 +02:00 коммит произвёл GitHub
Родитель cdace75389
Коммит fa3379a5d5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -432,14 +432,16 @@ void WebContentsPreferences::OverrideWebkitPrefs(
iter->second; iter->second;
if (auto iter = default_font_family_.find("serif"); if (auto iter = default_font_family_.find("serif");
iter != default_font_family_.end()) iter != default_font_family_.end())
prefs->serif_font_family_map[blink::web_pref::kCommonScript] = iter->second; prefs->serif_font_family_map[blink::web_pref::kCommonScript] =
iter->second;
if (auto iter = default_font_family_.find("sansSerif"); if (auto iter = default_font_family_.find("sansSerif");
iter != default_font_family_.end()) iter != default_font_family_.end())
prefs->sans_serif_font_family_map[blink::web_pref::kCommonScript] = prefs->sans_serif_font_family_map[blink::web_pref::kCommonScript] =
iter->second; iter->second;
if (auto iter = default_font_family_.find("monospace"); if (auto iter = default_font_family_.find("monospace");
iter != default_font_family_.end()) iter != default_font_family_.end())
prefs->fixed_font_family_map[blink::web_pref::kCommonScript] = iter->second; prefs->fixed_font_family_map[blink::web_pref::kCommonScript] =
iter->second;
if (auto iter = default_font_family_.find("cursive"); if (auto iter = default_font_family_.find("cursive");
iter != default_font_family_.end()) iter != default_font_family_.end())
prefs->cursive_font_family_map[blink::web_pref::kCommonScript] = prefs->cursive_font_family_map[blink::web_pref::kCommonScript] =