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

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

Issue 2754723004: Replace RELEASE_ASSERT with CHECK in core/layout/ (Closed)
Patch Set: 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 73fd82b32e8817d7ad407c0a17655c87b43deee3..05a3d2d1e043b91055bda372dfd41b54f984bc14 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -96,12 +96,12 @@ class ExpansionOpportunities {
if (r->m_lineLayoutItem.isText()) {
unsigned opportunitiesInRun = m_runsWithExpansions[i++];
- RELEASE_ASSERT(opportunitiesInRun <= m_totalOpportunities);
+ CHECK_LE(opportunitiesInRun, m_totalOpportunities);
// Don't justify for white-space: pre.
if (r->m_lineLayoutItem.style()->whiteSpace() != EWhiteSpace::kPre) {
InlineTextBox* textBox = toInlineTextBox(r->m_box);
- RELEASE_ASSERT(m_totalOpportunities);
+ CHECK(m_totalOpportunities);
int expansion = ((availableLogicalWidth - totalLogicalWidth) *
opportunitiesInRun / m_totalOpportunities)
.toInt();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698