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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ Created 3 years, 9 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: third_party/WebKit/Source/core/css/CSSFontSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontSelector.cpp b/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
index b9885b28608411440481cb6327343b22c6dbd9dc..26ef41adb4573dff8398cdcb8c958cc09358c140 100644
--- a/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
@@ -49,7 +49,7 @@ CSSFontSelector::CSSFontSelector(Document* document)
// FIXME: An old comment used to say there was no need to hold a reference to
// m_document because "we are guaranteed to be destroyed before the document".
// But there does not seem to be any such guarantee.
- ASSERT(m_document);
+ DCHECK(m_document);
DCHECK(m_document->frame());
FontCache::fontCache()->addClient(this);
FontFaceSet::from(*document)->addFontFacesToFontFaceCache(&m_fontFaceCache,

Powered by Google App Engine
This is Rietveld 408576698