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

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

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: no interpolation to/from auto Created 4 years, 3 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 e0a3743ccd0b52528b9446d812e03b85e1deaa05..0ca57918836d4ed2bee85df85284588b004a3888 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -550,12 +550,16 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPropertyID prop
DEFINE_STATIC_REF(ScaleTransformOperation, initialScale, ScaleTransformOperation::create(1, 1, 1, TransformOperation::Scale3D));
return createFromTransformProperties(style.scale(), style.effectiveZoom(), initialScale);
}
- case CSSPropertyTransformOrigin:
- return createFromTransformOrigin(style.transformOrigin(), style);
+ case CSSPropertyOffsetAnchor:
+ return createFromLengthPoint(style.offsetAnchor(), style);
case CSSPropertyOffsetDistance:
return createFromLength(style.offsetDistance(), style);
+ case CSSPropertyOffsetPosition:
+ return createFromLengthPoint(style.offsetPosition(), style);
case CSSPropertyOffsetRotation:
return createFromDoubleAndBool(style.offsetRotation().angle, style.offsetRotation().type == OffsetRotationAuto, style);
+ case CSSPropertyTransformOrigin:
+ return createFromTransformOrigin(style.transformOrigin(), style);
case CSSPropertyWebkitPerspectiveOriginX:
return createFromLength(style.perspectiveOriginX(), style);
case CSSPropertyWebkitPerspectiveOriginY:

Powered by Google App Engine
This is Rietveld 408576698