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

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, 7 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 | « no previous file | 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 4d1a0b46a5f9118dbc190a660ca1dd11fa76466b..ab1d4defb1ef174763a63212c543d5c58bbc352b 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -531,6 +531,8 @@ void StyleEngine::clearFontCache()
void StyleEngine::updateGenericFontFamilySettings()
{
+ if (!document().isActive() || !document().settings())
dglazkov 2014/05/29 22:24:28 Just checking: is this a symptom of a larger probl
tasak 2014/05/30 02:12:05 As far as I investigated, WebSettingsImpl::setSta
+ return;
if (!m_fontSelector)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698