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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.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/SVGAnimateMotionElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
index 5b83ba0cd2d796a19a1be9b6e6812e294feabc73..c6afff43dba7b3c63d9fb03039ae880ad79f9766 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
@@ -227,7 +227,7 @@ void SVGAnimateMotionElement::calculateAnimatedValue(float percentage,
return;
}
- ASSERT(!m_animationPath.isEmpty());
+ DCHECK(!m_animationPath.isEmpty());
float positionOnPath = m_animationPath.length() * percentage;
FloatPoint position;
@@ -266,7 +266,7 @@ void SVGAnimateMotionElement::applyResultsToTarget() {
const HeapHashSet<WeakMember<SVGElement>>& instances =
targetElement->instancesForElement();
for (SVGElement* shadowTreeElement : instances) {
- ASSERT(shadowTreeElement);
+ DCHECK(shadowTreeElement);
AffineTransform* transform = shadowTreeElement->animateMotionTransform();
if (!transform)
continue;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAngle.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698