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

Unified Diff: third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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/dom/LayoutTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
index d3fbef34bd9355bd53af6e3a85c1829f60409b08..05de8f155fe64676d30f78409f3015f633f07535 100644
--- a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
+++ b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
@@ -45,15 +45,15 @@ protected:
: m_node(node)
, m_layoutObjectParent(layoutObjectParent)
{
- ASSERT(!node.layoutObject());
- ASSERT(node.needsAttach());
- ASSERT(node.document().inStyleRecalc());
- ASSERT(node.inActiveDocument());
+ DCHECK(!node.layoutObject());
+ DCHECK(node.needsAttach());
+ DCHECK(node.document().inStyleRecalc());
+ DCHECK(node.inActiveDocument());
}
LayoutObject* nextLayoutObject() const
{
- ASSERT(m_layoutObjectParent);
+ DCHECK(m_layoutObjectParent);
// Avoid an O(N^2) walk over the children when reattaching all children of a node.
if (m_layoutObjectParent->node() && m_layoutObjectParent->node()->needsAttach())

Powered by Google App Engine
This is Rietveld 408576698