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

Unified Diff: Source/core/animation/DoubleStyleInterpolation.cpp

Issue 1190253003: Remove redundant check for CSS_DEG type, isAngle() is more general (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DoubleStyleInterpolation.cpp
diff --git a/Source/core/animation/DoubleStyleInterpolation.cpp b/Source/core/animation/DoubleStyleInterpolation.cpp
index ad1989e06916a0225d1e66a0b3aa83a554848849..b4eb68d700d47ec30f4ade3f7a31072d3b7a9998 100644
--- a/Source/core/animation/DoubleStyleInterpolation.cpp
+++ b/Source/core/animation/DoubleStyleInterpolation.cpp
@@ -102,7 +102,7 @@ bool extractMotionRotation(const CSSValue& value, float* rotation, MotionRotatio
} else if (primitiveValue->getValueID() == CSSValueReverse) {
*rotationType = MotionRotationAuto;
*rotation += 180;
- } else if (primitiveValue->isAngle() || primitiveValue->primitiveType() == CSSPrimitiveValue::CSS_DEG) {
+ } else if (primitiveValue->isAngle()) {
*rotation += primitiveValue->computeDegrees();
} else {
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698