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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 2680163004: Animations: Smooth interpolation for translate none (Closed)
Patch Set: createNoneValue isNoneValue 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/css/CSSAnimatableValueFactory.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
index 4f763f0d4e8181c5b6d5e51f46004a56314d0a00..c4660496b8f6997fe9d7a89064978aa1e53d1b06 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -610,12 +610,8 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(
return AnimatableTransform::create(style.transform(),
style.effectiveZoom());
case CSSPropertyTranslate: {
- DEFINE_STATIC_REF(TranslateTransformOperation, initialTranslate,
- TranslateTransformOperation::create(
- Length(0, Fixed), Length(0, Fixed), 0,
- TransformOperation::Translate3D));
- return createFromTransformProperties(
- style.translate(), style.effectiveZoom(), initialTranslate);
+ return createFromTransformProperties(style.translate(),
+ style.effectiveZoom(), nullptr);
}
case CSSPropertyRotate: {
return createFromTransformProperties(style.rotate(),

Powered by Google App Engine
This is Rietveld 408576698