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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFontElement.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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/html/HTMLFontElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFontElement.cpp b/third_party/WebKit/Source/core/html/HTMLFontElement.cpp
index 5dbd8c6ac1f3fe552dccbf13c5efe9066979fc0a..b7b433a1039d236be9345540869155682e40c3cb 100644
--- a/third_party/WebKit/Source/core/html/HTMLFontElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFontElement.cpp
@@ -66,7 +66,7 @@ static bool parseFontSize(const CharacterType* characters, unsigned length, int&
// Step 4
if (position == end)
return false;
- ASSERT(position < end);
+ DCHECK_LT(position, end);
// Step 5
enum {
@@ -180,7 +180,7 @@ bool HTMLFontElement::cssValueFromFontSizeNumber(const String& s, CSSValueID& si
size = CSSValueWebkitXxxLarge;
break;
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698