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

Unified Diff: Source/core/dom/StyleEngine.cpp

Issue 304033005: Should check whether document.settings() is available or not when updating GenericFontFamilySetting… (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
« no previous file with comments | « Source/core/css/CSSFontSelector.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index a7a0c141384487c4ac9552a9ed3d07a68edae30c..52fea5c31f0019cdd4ea19df8022d1be05b01bf1 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -525,6 +525,10 @@ void StyleEngine::clearFontCache()
void StyleEngine::updateGenericFontFamilySettings()
{
+ // FIXME: we should not update generic font family settings when
+ // document is inactive.
+ ASSERT(document().isActive());
+
if (!m_fontSelector)
return;
« no previous file with comments | « Source/core/css/CSSFontSelector.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698