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

Unified Diff: Source/core/css/CSSFontSelector.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 | « no previous file | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index a577b3468f9125d6f11f4f33c7ceb93f3769367b..76f5734cd3ddb15673a2eca3e5d25e809ef547e6 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -159,7 +159,8 @@ void CSSFontSelector::clearDocument()
void CSSFontSelector::updateGenericFontFamilySettings(Document& document)
{
- ASSERT(document.settings());
+ if (!document.settings())
+ return;
m_genericFontFamilySettings = document.settings()->genericFontFamilySettings();
}
« no previous file with comments | « no previous file | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698