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

Unified Diff: third_party/WebKit/Source/core/page/FrameTree.cpp

Issue 2896443003: Replace remaining ASSERT with DCHECK/_EQ as appropriate (Closed)
Patch Set: Created 3 years, 7 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/page/FrameTree.cpp
diff --git a/third_party/WebKit/Source/core/page/FrameTree.cpp b/third_party/WebKit/Source/core/page/FrameTree.cpp
index 29d2a49089d485622075f03d89e80fc5cb4d1aeb..cb492e67a9a8b82249eb68df941bd2440ceac657 100644
--- a/third_party/WebKit/Source/core/page/FrameTree.cpp
+++ b/third_party/WebKit/Source/core/page/FrameTree.cpp
@@ -217,7 +217,7 @@ DISABLE_CFI_PERF
Frame* FrameTree::TraverseNext(const Frame* stay_within) const {
Frame* child = FirstChild();
if (child) {
- ASSERT(!stay_within || child->Tree().IsDescendantOf(stay_within));
+ DCHECK(!stay_within || child->Tree().IsDescendantOf(stay_within));
return child;
}
@@ -226,7 +226,7 @@ Frame* FrameTree::TraverseNext(const Frame* stay_within) const {
Frame* sibling = NextSibling();
if (sibling) {
- ASSERT(!stay_within || sibling->Tree().IsDescendantOf(stay_within));
+ DCHECK(!stay_within || sibling->Tree().IsDescendantOf(stay_within));
return sibling;
}
@@ -239,7 +239,7 @@ Frame* FrameTree::TraverseNext(const Frame* stay_within) const {
}
if (frame) {
- ASSERT(!stay_within || !sibling ||
+ DCHECK(!stay_within || !sibling ||
sibling->Tree().IsDescendantOf(stay_within));
return sibling;
}

Powered by Google App Engine
This is Rietveld 408576698