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

Unified Diff: Source/core/css/FontFaceSet.cpp

Issue 42543007: StyleResolver should update RuleSets lazily. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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
Index: Source/core/css/FontFaceSet.cpp
diff --git a/Source/core/css/FontFaceSet.cpp b/Source/core/css/FontFaceSet.cpp
index 93ea4db23ae908b8161552ebe159b7c0d184b410..cacc1455196c9d844ca13a058b9fc020bb83f810 100644
--- a/Source/core/css/FontFaceSet.cpp
+++ b/Source/core/css/FontFaceSet.cpp
@@ -423,6 +423,7 @@ bool FontFaceSet::resolveFontStyle(const String& fontString, Font& font)
CSSPropertyValue(CSSPropertyLineHeight, *parsedStyle),
};
StyleResolver* styleResolver = document()->styleResolver();
+ appendPendingStyleSheetsIfNeeded(styleResolver);
styleResolver->applyPropertiesToStyle(properties, WTF_ARRAY_LENGTH(properties), style.get());
font = style->font();

Powered by Google App Engine
This is Rietveld 408576698