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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.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/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index 613f7e39174de04e232479bab1586878ed085b09..ab86f9f315ec3cff7c1bb2e9aefeeb66f162c662 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -40,9 +40,9 @@ CSSImageGeneratorValue::~CSSImageGeneratorValue() {}
void CSSImageGeneratorValue::addClient(const LayoutObject* layoutObject,
const IntSize& size) {
- ASSERT(layoutObject);
+ DCHECK(layoutObject);
if (m_clients.isEmpty()) {
- ASSERT(!m_keepAlive);
+ DCHECK(!m_keepAlive);
m_keepAlive = this;
}
@@ -65,7 +65,7 @@ CSSImageGeneratorValue* CSSImageGeneratorValue::valueWithURLsMadeAbsolute() {
}
void CSSImageGeneratorValue::removeClient(const LayoutObject* layoutObject) {
- ASSERT(layoutObject);
+ DCHECK(layoutObject);
LayoutObjectSizeCountMap::iterator it = m_clients.find(layoutObject);
SECURITY_DCHECK(it != m_clients.end());
@@ -82,7 +82,7 @@ void CSSImageGeneratorValue::removeClient(const LayoutObject* layoutObject) {
m_clients.erase(layoutObject);
if (m_clients.isEmpty()) {
- ASSERT(m_keepAlive);
+ DCHECK(m_keepAlive);
m_keepAlive.clear();
}
}
@@ -128,7 +128,7 @@ PassRefPtr<Image> CSSImageGeneratorValue::image(
case ConicGradientClass:
return toCSSConicGradientValue(this)->image(layoutObject, size);
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return nullptr;
}
@@ -146,7 +146,7 @@ bool CSSImageGeneratorValue::isFixedSize() const {
case ConicGradientClass:
return toCSSConicGradientValue(this)->isFixedSize();
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return false;
}
@@ -166,7 +166,7 @@ IntSize CSSImageGeneratorValue::fixedSize(const LayoutObject& layoutObject,
case ConicGradientClass:
return toCSSConicGradientValue(this)->fixedSize(layoutObject);
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return IntSize();
}
@@ -184,7 +184,7 @@ bool CSSImageGeneratorValue::isPending() const {
case ConicGradientClass:
return toCSSConicGradientValue(this)->isPending();
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return false;
}
@@ -203,7 +203,7 @@ bool CSSImageGeneratorValue::knownToBeOpaque(
case ConicGradientClass:
return toCSSConicGradientValue(this)->knownToBeOpaque(layoutObject);
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
return false;
}
@@ -226,7 +226,7 @@ void CSSImageGeneratorValue::loadSubimages(const Document& document) {
toCSSConicGradientValue(this)->loadSubimages(document);
break;
default:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGroupingRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSImageSetValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698