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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 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/platform/transforms/TransformationMatrix.cpp
diff --git a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
index d6eeed0c8342701099ba04716dc08adf73e82de9..ea506cf82ea2f2d660f44393d0592089eaccecc1 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
+++ b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
@@ -868,7 +868,7 @@ FloatQuad TransformationMatrix::ProjectQuad(const FloatQuad& q,
}
static float ClampEdgeValue(float f) {
- ASSERT(!std::isnan(f));
+ DCHECK(!std::isnan(f));
return clampTo(f, (-LayoutUnit::Max() / 2).ToFloat(),
(LayoutUnit::Max() / 2).ToFloat());
}
@@ -1835,7 +1835,7 @@ bool TransformationMatrix::IsIntegerTranslation() const {
}
FloatSize TransformationMatrix::To2DTranslation() const {
- ASSERT(IsIdentityOr2DTranslation());
+ DCHECK(IsIdentityOr2DTranslation());
return FloatSize(matrix_[3][0], matrix_[3][1]);
}

Powered by Google App Engine
This is Rietveld 408576698