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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleRule.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. 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/css/CSSStyleRule.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
index 7e5b2d9e4952cadac7743224c161a7d14f4ef485..9646330dc7c2638ef3bb022f81d84874ffe794e0 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
@@ -65,11 +65,11 @@ String CSSStyleRule::generateSelectorText() const {
String CSSStyleRule::selectorText() const {
if (hasCachedSelectorText()) {
- ASSERT(selectorTextCache().contains(this));
+ DCHECK(selectorTextCache().contains(this));
return selectorTextCache().at(this);
}
- ASSERT(!selectorTextCache().contains(this));
+ DCHECK(!selectorTextCache().contains(this));
String text = generateSelectorText();
selectorTextCache().set(this, text);
setHasCachedSelectorText(true);
@@ -108,7 +108,7 @@ String CSSStyleRule::cssText() const {
}
void CSSStyleRule::reattach(StyleRuleBase* rule) {
- ASSERT(rule);
+ DCHECK(rule);
m_styleRule = toStyleRule(rule);
if (m_propertiesCSSOMWrapper)
m_propertiesCSSOMWrapper->reattach(m_styleRule->mutableProperties());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelectorList.cpp ('k') | third_party/WebKit/Source/core/css/CSSToLengthConversionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698