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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.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/html/parser/HTMLFormattingElementList.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp b/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
index 6e568daa671f108790326905b21fee9fa2563666..7b5d368487a308e5489ae00e68c51d6d808be876 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp
@@ -85,7 +85,7 @@ void HTMLFormattingElementList::swapTo(Element* oldElement,
return;
}
size_t index = bookmark.mark() - first();
- ASSERT_WITH_SECURITY_IMPLICATION(index < size());
+ SECURITY_DCHECK(index < size());
m_entries.insert(index + 1, newItem);
remove(oldElement);
}

Powered by Google App Engine
This is Rietveld 408576698