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

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: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..afdceb3af57e3030b73f781f2068884d8eb36baf 100644
--- a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -641,9 +641,15 @@ 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;
+ case CSSPropertyOffsetPosition:
+ style->setOffsetPosition(animatableValueToLengthPoint(value, state));
+ return;
case CSSPropertyOffsetRotation:
style->setOffsetRotation(StyleOffsetRotation(
toAnimatableDoubleAndBool(value)->toDouble(),
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698