Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: sky/engine/core/dom/StyleEngine.cpp

Issue 858423002: Don't store a RuleFeatureSet on ScopedStyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: better test names. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/tests/styles/media-queries.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/tests/styles/media-queries.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698