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

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

Issue 2247773004: [WIP] CSS Motion Path: offset-anchor and offset-position Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offsetAnchor Created 4 years, 4 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 8a48ad8b22ed99ab617ff74def957cb41d9d6a77..3b8fc49ac1fb0fece6b4545b534baa4ca0d4a2ff 100644
--- a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -598,6 +598,12 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyPerspectiveOrigin:
style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state));
return;
+ case CSSPropertyOffsetAnchor:
+ style->setOffsetAnchor(animatableValueToLengthPoint(value, state));
+ return;
+ case CSSPropertyOffsetPosition:
+ style->setOffsetPosition(animatableValueToLengthPoint(value, state));
+ return;
case CSSPropertyShapeOutside:
style->setShapeOutside(toAnimatableShapeValue(value)->getShapeValue());
return;
@@ -641,13 +647,13 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyTransformOrigin:
style->setTransformOrigin(animatableValueToTransformOrigin(value, state));
return;
- case CSSPropertyMotionOffset:
- style->setMotionOffset(animatableValueToLength(value, state));
+ case CSSPropertyOffsetDistance:
+ style->setOffsetDistance(animatableValueToLength(value, state));
return;
- case CSSPropertyMotionRotation:
- style->setMotionRotation(StyleMotionRotation(
+ case CSSPropertyOffsetRotation:
+ style->setOffsetRotation(StyleOffsetRotation(
toAnimatableDoubleAndBool(value)->toDouble(),
- toAnimatableDoubleAndBool(value)->flag() ? MotionRotationAuto : MotionRotationFixed));
+ toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto : OffsetRotationFixed));
return;
case CSSPropertyWebkitPerspectiveOriginX:
style->setPerspectiveOriginX(animatableValueToLength(value, state));

Powered by Google App Engine
This is Rietveld 408576698