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

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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 years, 8 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/layout/SubtreeLayoutScope.cpp
diff --git a/third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp b/third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp
index a804673647f26f3c393bba2a95e59c596b5cefc6..b79ac222f51cdb319b32a0f0adf8524c59ecbac0 100644
--- a/third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp
+++ b/third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp
@@ -51,12 +51,12 @@ SubtreeLayoutScope::~SubtreeLayoutScope() {
void SubtreeLayoutScope::setNeedsLayout(
LayoutObject* descendant,
LayoutInvalidationReasonForTracing reason) {
- ASSERT(descendant->isDescendantOf(&m_root));
+ DCHECK(descendant->isDescendantOf(&m_root));
descendant->setNeedsLayout(reason, MarkContainerChain, this);
}
void SubtreeLayoutScope::setChildNeedsLayout(LayoutObject* descendant) {
- ASSERT(descendant->isDescendantOf(&m_root));
+ DCHECK(descendant->isDescendantOf(&m_root));
descendant->setChildNeedsLayout(MarkContainerChain, this);
}

Powered by Google App Engine
This is Rietveld 408576698