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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectInlines.h

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/LayoutObjectInlines.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectInlines.h b/third_party/WebKit/Source/core/layout/LayoutObjectInlines.h
index f825262124c72fbf40bfcf5317b8240f852c99b5..fedcf64c77e52ed932008067f7a4a31b27ebd19b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectInlines.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectInlines.h
@@ -22,7 +22,7 @@ inline const ComputedStyle* LayoutObject::firstLineStyle() const {
inline const ComputedStyle& LayoutObject::firstLineStyleRef() const {
const ComputedStyle* style = firstLineStyle();
- ASSERT(style);
+ DCHECK(style);
return *style;
}
@@ -32,7 +32,7 @@ inline const ComputedStyle* LayoutObject::style(bool firstLine) const {
inline const ComputedStyle& LayoutObject::styleRef(bool firstLine) const {
const ComputedStyle* style = this->style(firstLine);
- ASSERT(style);
+ DCHECK(style);
return *style;
}

Powered by Google App Engine
This is Rietveld 408576698