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

Unified Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: 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/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index b8d25929a2e09b49eab5d6c717aa8f40095a14ae..3e9748ef317eee78d63a7149ec06371c8f8123b5 100644
--- a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -641,6 +641,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyTransformOrigin:
style->setTransformOrigin(animatableValueToTransformOrigin(value, state));
return;
+ case CSSPropertyOffsetAnchor:
+ style->setOffsetAnchor(animatableValueToLengthPoint(value, state));
+ return;
case CSSPropertyOffsetDistance:
style->setOffsetDistance(animatableValueToLength(value, state));
return;
@@ -649,6 +652,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
toAnimatableDoubleAndBool(value)->toDouble(),
toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto : OffsetRotationFixed));
return;
+ case CSSPropertyOffsetPosition:
suzyh_UTC10 (ex-contributor) 2016/09/22 03:44:53 Optional: Swap with CSSPropertyOffsetRotation to m
Eric Willigers 2016/09/22 04:32:15 Done.
+ style->setOffsetPosition(animatableValueToLengthPoint(value, state));
+ return;
case CSSPropertyWebkitPerspectiveOriginX:
style->setPerspectiveOriginX(animatableValueToLength(value, state));
return;

Powered by Google App Engine
This is Rietveld 408576698