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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLIElement.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/HTMLLIElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
index 924a08421c391dcfe69aba11699225a483faa9d5..8899ac688972b2433fa2e9a20bec48a9546b9999 100644
--- a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
@@ -98,7 +98,7 @@ void HTMLLIElement::attachLayoutTree(const AttachContext& context)
if (layoutObject() && layoutObject()->isListItem()) {
LayoutLIItem liLayoutItem = LayoutLIItem(toLayoutListItem(layoutObject()));
- ASSERT(!document().childNeedsDistributionRecalc());
+ DCHECK(!document().childNeedsDistributionRecalc());
// Find the enclosing list node.
Element* listNode = 0;
@@ -122,7 +122,8 @@ void HTMLLIElement::attachLayoutTree(const AttachContext& context)
inline void HTMLLIElement::parseValue(const AtomicString& value)
{
- ASSERT(layoutObject() && layoutObject()->isListItem());
+ DCHECK(layoutObject());
+ DCHECK(layoutObject()->isListItem());
bool valueOK;
int requestedValue = value.toInt(&valueOK);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698