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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible 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/svg/SVGElementRareData.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
index d384200710426580fe57f77be6f9563899f98a08..89d475967996f2545ab167fb7b4213d4c7e16172 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
@@ -21,7 +21,7 @@ SVGElementRareData::ensureAnimatedSMILStyleProperties() {
ComputedStyle* SVGElementRareData::overrideComputedStyle(
Element* element,
const ComputedStyle* parentStyle) {
- ASSERT(element);
+ DCHECK(element);
if (!m_useOverrideComputedStyle)
return nullptr;
if (!m_overrideComputedStyle || m_needsOverrideComputedStyleUpdate) {
@@ -34,7 +34,7 @@ ComputedStyle* SVGElementRareData::overrideComputedStyle(
MatchAllRulesExcludingSMIL);
m_needsOverrideComputedStyleUpdate = false;
}
- ASSERT(m_overrideComputedStyle);
+ DCHECK(m_overrideComputedStyle);
return m_overrideComputedStyle.get();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698