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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimator.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/scroll/ScrollAnimator.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
index 3fb3c9e214ad5354356406eb6729fadf2557fa01..bc725456b56050e63b9d2ba70f17fd37c68cbf1d 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
@@ -147,7 +147,7 @@ bool ScrollAnimator::WillAnimateToOffset(const ScrollOffset& target_offset) {
if (run_state_ == RunState::kWaitingToCancelOnCompositor ||
run_state_ == RunState::kWaitingToCancelOnCompositorButNewScroll) {
- ASSERT(animation_curve_);
+ DCHECK(animation_curve_);
target_offset_ = target_offset;
if (RegisterAndScheduleAnimation())
run_state_ = RunState::kWaitingToCancelOnCompositorButNewScroll;

Powered by Google App Engine
This is Rietveld 408576698