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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.cpp

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/line/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index 25502963b7395693c01635fbd24bb788e35d85b1..fee1a6efa86234243780a8f76750425b6d5e94b9 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -156,7 +156,7 @@ LayoutUnit InlineBox::logicalHeight() const {
return isHorizontal() ? LineLayoutBox(getLineLayoutItem()).size().height()
: LineLayoutBox(getLineLayoutItem()).size().width();
- ASSERT(isInlineFlowBox());
+ DCHECK(isInlineFlowBox());
LineLayoutBoxModel flowObject = boxModelObject();
DCHECK(fontData);
LayoutUnit result(fontData ? fontData->getFontMetrics().height() : 0);
@@ -247,14 +247,14 @@ bool InlineBox::nodeAtPoint(HitTestResult& result,
const RootInlineBox& InlineBox::root() const {
if (m_parent)
return m_parent->root();
- ASSERT(isRootInlineBox());
+ DCHECK(isRootInlineBox());
return static_cast<const RootInlineBox&>(*this);
}
RootInlineBox& InlineBox::root() {
if (m_parent)
return m_parent->root();
- ASSERT(isRootInlineBox());
+ DCHECK(isRootInlineBox());
return static_cast<RootInlineBox&>(*this);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineBox.h ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698