| 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();
|
|
|