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

Unified Diff: third_party/WebKit/Source/core/layout/CounterNode.cpp

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Rebase with latest 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/CounterNode.cpp
diff --git a/third_party/WebKit/Source/core/layout/CounterNode.cpp b/third_party/WebKit/Source/core/layout/CounterNode.cpp
index fa4d5966f3fb193c4d3f9ed66cc32f302addea00..7e291e690814bbe86d6b2722e79c0a59021781ea 100644
--- a/third_party/WebKit/Source/core/layout/CounterNode.cpp
+++ b/third_party/WebKit/Source/core/layout/CounterNode.cpp
@@ -151,18 +151,18 @@ int CounterNode::computeCountInParent() const {
void CounterNode::addLayoutObject(LayoutCounter* value) {
if (!value) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return;
}
if (value->m_counterNode) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
value->m_counterNode->removeLayoutObject(value);
}
ASSERT(!value->m_nextForSameCounter);
for (LayoutCounter* iterator = m_rootLayoutObject; iterator;
iterator = iterator->m_nextForSameCounter) {
if (iterator == value) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return;
}
}
@@ -170,7 +170,7 @@ void CounterNode::addLayoutObject(LayoutCounter* value) {
m_rootLayoutObject = value;
if (value->m_counterNode != this) {
if (value->m_counterNode) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
value->m_counterNode->removeLayoutObject(value);
}
value->m_counterNode = this;
@@ -179,11 +179,11 @@ void CounterNode::addLayoutObject(LayoutCounter* value) {
void CounterNode::removeLayoutObject(LayoutCounter* value) {
if (!value) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return;
}
if (value->m_counterNode && value->m_counterNode != this) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
value->m_counterNode->removeLayoutObject(value);
}
LayoutCounter* previous = nullptr;
@@ -200,7 +200,7 @@ void CounterNode::removeLayoutObject(LayoutCounter* value) {
}
previous = iterator;
}
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
void CounterNode::resetLayoutObjects() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698