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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2241993002: CSS Motion Path: New names for properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index ecbb928c555ecdb76cbd89b3e472ee2c5bd100c1..d9e58518574a2b842a222851af7aa30339fe6676 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2730,19 +2730,22 @@ const CSSValue* ComputedStyleCSSValueMapping::get(CSSPropertyID propertyID, cons
case CSSPropertyMotion:
return valuesForShorthandProperty(motionShorthand(), style, layoutObject, styledNode, allowVisitedStyle);
- case CSSPropertyMotionPath:
- if (const StylePath* styleMotionPath = style.motionPath())
+ case CSSPropertyOffset:
+ return valuesForShorthandProperty(offsetShorthand(), style, layoutObject, styledNode, allowVisitedStyle);
+
+ case CSSPropertyOffsetPath:
+ if (const StylePath* styleMotionPath = style.offsetPath())
return styleMotionPath->computedCSSValue();
return CSSPrimitiveValue::createIdentifier(CSSValueNone);
- case CSSPropertyMotionOffset:
- return zoomAdjustedPixelValueForLength(style.motionOffset(), style);
+ case CSSPropertyOffsetDistance:
+ return zoomAdjustedPixelValueForLength(style.offsetDistance(), style);
- case CSSPropertyMotionRotation: {
+ case CSSPropertyOffsetRotation: {
CSSValueList* list = CSSValueList::createSpaceSeparated();
- if (style.motionRotation().type == MotionRotationAuto)
+ if (style.offsetRotation().type == OffsetRotationAuto)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValueAuto));
- list->append(*CSSPrimitiveValue::create(style.motionRotation().angle, CSSPrimitiveValue::UnitType::Degrees));
+ list->append(*CSSPrimitiveValue::create(style.offsetRotation().angle, CSSPrimitiveValue::UnitType::Degrees));
return list;
}

Powered by Google App Engine
This is Rietveld 408576698