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

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

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 2 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 2092d752803562ee42c35998d8dd26fc9152698a..58b1551b0db3bef52e267bf7d0301a2640493d19 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -185,8 +185,8 @@ InlineFlowBox* LayoutBlockFlow::createLineBoxes(LineLayoutItem lineLayoutItem,
InlineFlowBox* parentBox = nullptr;
InlineFlowBox* result = nullptr;
do {
- ASSERT_WITH_SECURITY_IMPLICATION(lineLayoutItem.isLayoutInline() ||
- lineLayoutItem.isEqual(this));
+ SECURITY_DCHECK(lineLayoutItem.isLayoutInline() ||
+ lineLayoutItem.isEqual(this));
LineLayoutInline inlineFlow(!lineLayoutItem.isEqual(this) ? lineLayoutItem
: nullptr);
@@ -211,7 +211,7 @@ InlineFlowBox* LayoutBlockFlow::createLineBoxes(LineLayoutItem lineLayoutItem,
// made, we need to place it at the end of the current line.
InlineBox* newBox = createInlineBoxForLayoutObject(
LineLayoutItem(lineLayoutItem), lineLayoutItem.isEqual(this));
- ASSERT_WITH_SECURITY_IMPLICATION(newBox->isInlineFlowBox());
+ SECURITY_DCHECK(newBox->isInlineFlowBox());
parentBox = toInlineFlowBox(newBox);
parentBox->setFirstLineStyleBit(lineInfo.isFirstLine());
parentBox->setIsHorizontal(isHorizontalWritingMode());
« 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