| Index: sky/engine/core/dom/StyleEngine.cpp
|
| diff --git a/sky/engine/core/dom/StyleEngine.cpp b/sky/engine/core/dom/StyleEngine.cpp
|
| index f6e8fa6731314b188be1a7e0d8a40e47406e7668..c3309bb490b4458ef93e3424d356a08de76c5d76 100644
|
| --- a/sky/engine/core/dom/StyleEngine.cpp
|
| +++ b/sky/engine/core/dom/StyleEngine.cpp
|
| @@ -95,7 +95,7 @@ void StyleEngine::updateDocumentFonts()
|
| const auto& sheets = m_document->scopedStyleResolver().authorStyleSheets();
|
|
|
| for (const auto& sheet : sheets) {
|
| - RuleSet& ruleSet = sheet->contents()->ruleSet();
|
| + RuleSet& ruleSet = sheet->contents()->ensureRuleSet();
|
| for (const auto& rule : ruleSet.fontFaceRules()) {
|
| if (RefPtr<FontFace> fontFace = FontFace::create(m_document, rule))
|
| m_fontSelector->fontFaceCache()->add(m_fontSelector.get(), rule, fontFace);
|
|
|