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

Unified Diff: third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: alphabetical 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/LengthListPropertyFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
index a0fa48c58c9aca9fbe28b3329acbdc870024f0e9..10426ec3a358686cf0614e09a37dd8ce55c79a0f 100644
--- a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
@@ -82,6 +82,8 @@ ValueRange LengthListPropertyFunctions::getValueRange(CSSPropertyID property)
case CSSPropertyBackgroundPositionX:
case CSSPropertyBackgroundPositionY:
case CSSPropertyObjectPosition:
+ case CSSPropertyOffsetAnchor:
+ case CSSPropertyOffsetPosition:
case CSSPropertyPerspectiveOrigin:
case CSSPropertyTransformOrigin:
case CSSPropertyWebkitMaskPositionX:
@@ -141,6 +143,10 @@ bool LengthListPropertyFunctions::getLengthList(CSSPropertyID property, const Co
case CSSPropertyObjectPosition:
return appendToVector(style.objectPosition(), result);
+ case CSSPropertyOffsetAnchor:
+ return appendToVector(style.offsetAnchor(), result);
+ case CSSPropertyOffsetPosition:
+ return appendToVector(style.offsetPosition(), result);
case CSSPropertyPerspectiveOrigin:
return appendToVector(style.perspectiveOrigin(), result);
case CSSPropertyBorderBottomLeftRadius:
@@ -201,6 +207,12 @@ void LengthListPropertyFunctions::setLengthList(CSSPropertyID property, Computed
case CSSPropertyObjectPosition:
style.setObjectPosition(pointFromVector(lengthList));
return;
+ case CSSPropertyOffsetAnchor:
+ style.setOffsetAnchor(pointFromVector(lengthList));
+ return;
+ case CSSPropertyOffsetPosition:
+ style.setOffsetPosition(pointFromVector(lengthList));
+ return;
case CSSPropertyPerspectiveOrigin:
style.setPerspectiveOrigin(pointFromVector(lengthList));
return;

Powered by Google App Engine
This is Rietveld 408576698