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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (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
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
index a410c11e3326bf1f99d0e36a9796ba4443d61e90..033a843cf6efea8b2201e6a7ff3b2ca00ff14391 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
@@ -45,11 +45,11 @@ class CORE_EXPORT LayoutSVGRoot final : public LayoutReplaced {
void slowLastChild() const = delete;
LayoutObject* firstChild() const {
- ASSERT(children() == virtualChildren());
+ DCHECK_EQ(children(), virtualChildren());
return children()->firstChild();
}
LayoutObject* lastChild() const {
- ASSERT(children() == virtualChildren());
+ DCHECK_EQ(children(), virtualChildren());
return children()->lastChild();
}

Powered by Google App Engine
This is Rietveld 408576698