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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp

Issue 2697743002: Reduce strictness of length animation DCHECK (Closed)
Patch Set: Created 3 years, 10 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/animation/CSSLengthInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
index 7d79676668c367e86a1bb09d6768b98b6ca103bd..ebb2ac6f80ccccd121ae1c22fd4eb73229c5ac0e 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
@@ -158,7 +158,7 @@ void CSSLengthInterpolationType::applyStandardPropertyValue(
StyleBuilder::applyProperty(cssProperty(), state,
*CSSValue::create(length, zoom));
DCHECK(LengthPropertyFunctions::getLength(cssProperty(), style, after));
- DCHECK_EQ(before.type(), after.type());
+ DCHECK_EQ(before.isSpecified(), after.isSpecified());
suzyh_UTC10 (ex-contributor) 2017/02/14 04:38:51 I'm not very familiar with LengthType. I think thi
alancutter (OOO until 2018) 2017/02/14 04:46:12 Good point, added type check back for that case.
if (before.isSpecified()) {
const float kSlack = 0.1;
float delta =

Powered by Google App Engine
This is Rietveld 408576698