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

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

Issue 335393002: Should update FontFaceCache version when updating generic font-family settings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index bff39895048036117507d8d77cecb80f9873a3bb..83306aa55fd9e0282385c80886d4a9336505fb56 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -170,6 +170,8 @@ void CSSFontSelector::updateGenericFontFamilySettings(Document& document)
if (!document.settings())
return;
m_genericFontFamilySettings = document.settings()->genericFontFamilySettings();
+ // Need to increment FontFaceCache version to update RenderStyles.
+ m_fontFaceCache.incrementVersion();
}
void CSSFontSelector::trace(Visitor* visitor)
« no previous file with comments | « LayoutTests/fast/text/update-sans-serif-and-recalc-style-expected.html ('k') | Source/core/css/FontFaceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698