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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.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/css/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index 2198b0e64eedd96e86ce50a4e6e4fb4f73a4916e..9eb2844a5dc381cf01e001b8939d36304f48425b 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -182,7 +182,7 @@ void StyleSheetContents::setHasMediaQueries() {
}
StyleRuleBase* StyleSheetContents::ruleAt(unsigned index) const {
- ASSERT_WITH_SECURITY_IMPLICATION(index < ruleCount());
+ SECURITY_DCHECK(index < ruleCount());
if (index < m_importRules.size())
return m_importRules[index].get();
@@ -214,7 +214,7 @@ void StyleSheetContents::clearRules() {
bool StyleSheetContents::wrapperInsertRule(StyleRuleBase* rule,
unsigned index) {
ASSERT(m_isMutable);
- ASSERT_WITH_SECURITY_IMPLICATION(index <= ruleCount());
+ SECURITY_DCHECK(index <= ruleCount());
if (index < m_importRules.size() ||
(index == m_importRules.size() && rule->isImportRule())) {
@@ -274,7 +274,7 @@ bool StyleSheetContents::wrapperInsertRule(StyleRuleBase* rule,
bool StyleSheetContents::wrapperDeleteRule(unsigned index) {
ASSERT(m_isMutable);
- ASSERT_WITH_SECURITY_IMPLICATION(index < ruleCount());
+ SECURITY_DCHECK(index < ruleCount());
if (index < m_importRules.size()) {
m_importRules[index]->clearParentStyleSheet();
« no previous file with comments | « third_party/WebKit/Source/core/css/FontStyleMatcher.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698