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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.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/SVGPreserveAspectRatio.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
index c5a59884d92458e66b478183cd734137fd97e4b3..66bfc15ee5e8655dd74b786eb297ff0039406cc4 100644
--- a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
@@ -291,10 +291,10 @@ AffineTransform SVGPreserveAspectRatio::getCTM(float logicalX,
float logicalHeight,
float physicalWidth,
float physicalHeight) const {
- ASSERT(logicalWidth);
- ASSERT(logicalHeight);
- ASSERT(physicalWidth);
- ASSERT(physicalHeight);
+ DCHECK(logicalWidth);
+ DCHECK(logicalHeight);
+ DCHECK(physicalWidth);
+ DCHECK(physicalHeight);
AffineTransform transform;
if (m_align == kSvgPreserveaspectratioUnknown)
@@ -441,7 +441,7 @@ void SVGPreserveAspectRatio::calculateAnimatedValue(
SVGPropertyBase* toValue,
SVGPropertyBase*,
SVGElement*) {
- ASSERT(animationElement);
+ DCHECK(animationElement);
bool useToValue;
animationElement->animateDiscreteType(percentage, false, true, useToValue);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPolyElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698