Index: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h |
index 504887e63d786fee906b10839e7e1980141f5e0a..8920ea03d53b4cca5bc547e5bbd6b77fc995605e 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h |
@@ -133,7 +133,7 @@ class HTMLConstructionSite final { |
flushPendingText(mode); |
// NOTE: Possible reentrancy via JavaScript execution. |
executeQueuedTasks(); |
- ASSERT(mode == FlushIfAtTextLimit || !hasPendingTasks()); |
+ DCHECK(mode == FlushIfAtTextLimit || !hasPendingTasks()); |
} |
bool hasPendingTasks() { |
@@ -291,9 +291,9 @@ class HTMLConstructionSite final { |
Node* newNextChild, |
const StringView& newString, |
WhitespaceMode newWhitespaceMode) { |
- ASSERT(!parent || parent == newParent); |
+ DCHECK(!parent || parent == newParent); |
parent = newParent; |
- ASSERT(!nextChild || nextChild == newNextChild); |
+ DCHECK(!nextChild || nextChild == newNextChild); |
nextChild = newNextChild; |
stringBuilder.append(newString); |
whitespaceMode = std::min(whitespaceMode, newWhitespaceMode); |
@@ -314,9 +314,9 @@ class HTMLConstructionSite final { |
bool isEmpty() { |
// When the stringbuilder is empty, the parent and whitespace should also |
// be "empty". |
- ASSERT(stringBuilder.isEmpty() == !parent); |
- ASSERT(!stringBuilder.isEmpty() || !nextChild); |
- ASSERT(!stringBuilder.isEmpty() || (whitespaceMode == WhitespaceUnknown)); |
+ DCHECK_EQ(stringBuilder.isEmpty(), !parent); |
+ DCHECK(!stringBuilder.isEmpty() || !nextChild); |
+ DCHECK(!stringBuilder.isEmpty() || (whitespaceMode == WhitespaceUnknown)); |
return stringBuilder.isEmpty(); |
} |