| | 1063 | case CSSPropertyWebkitTransitionDelay: { |
|---|
| | 1064 | RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); |
|---|
| | 1065 | const AnimationList* t = style->transitions(); |
|---|
| | 1066 | if (t) { |
|---|
| | 1067 | for (size_t i = 0; i < t->size(); ++i) |
|---|
| | 1068 | list->append(CSSPrimitiveValue::create((*t)[i]->delay(), CSSPrimitiveValue::CSS_S)); |
|---|
| | 1069 | } |
|---|
| | 1070 | else |
|---|
| | 1071 | list->append(CSSPrimitiveValue::create(RenderStyle::initialAnimationDelay(), CSSPrimitiveValue::CSS_S)); |
|---|
| | 1072 | return list.release(); |
|---|
| | 1073 | } |
|---|
| | 1074 | case CSSPropertyWebkitTransitionDuration: { |
|---|
| | 1075 | RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); |
|---|
| | 1076 | const AnimationList* t = style->transitions(); |
|---|
| | 1077 | if (t) { |
|---|
| | 1078 | for (size_t i = 0; i < t->size(); ++i) |
|---|
| | 1079 | list->append(CSSPrimitiveValue::create((*t)[i]->duration(), CSSPrimitiveValue::CSS_S)); |
|---|
| | 1080 | } |
|---|
| | 1081 | else |
|---|
| | 1082 | list->append(CSSPrimitiveValue::create(RenderStyle::initialAnimationDuration(), CSSPrimitiveValue::CSS_S)); |
|---|
| | 1083 | return list.release(); |
|---|
| | 1084 | } |
|---|
| | 1085 | case CSSPropertyWebkitTransitionTimingFunction: { |
|---|
| | 1086 | RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); |
|---|
| | 1087 | const AnimationList* t = style->transitions(); |
|---|
| | 1088 | if (t) { |
|---|
| | 1089 | for (size_t i = 0; i < t->size(); ++i) { |
|---|
| | 1090 | const TimingFunction& tf = (*t)[i]->timingFunction(); |
|---|
| | 1091 | list->append(CSSTimingFunctionValue::create(tf.x1(), tf.y1(), tf.x2(), tf.y2())); |
|---|
| | 1092 | } |
|---|
| | 1093 | } |
|---|
| | 1094 | else { |
|---|
| | 1095 | const TimingFunction& tf = RenderStyle::initialAnimationTimingFunction(); |
|---|
| | 1096 | list->append(CSSTimingFunctionValue::create(tf.x1(), tf.y1(), tf.x2(), tf.y2())); |
|---|
| | 1097 | } |
|---|
| | 1098 | return list.release(); |
|---|
| | 1099 | } |
|---|
| | 1100 | case CSSPropertyWebkitTransitionProperty: { |
|---|
| | 1101 | RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); |
|---|
| | 1102 | const AnimationList* t = style->transitions(); |
|---|
| | 1103 | if (t) { |
|---|
| | 1104 | for (size_t i = 0; i < t->size(); ++i) { |
|---|
| | 1105 | int prop = (*t)[i]->property(); |
|---|
| | 1106 | const char* name; |
|---|
| | 1107 | if (prop == cAnimateNone) |
|---|
| | 1108 | name = "none"; |
|---|
| | 1109 | else if (prop == cAnimateAll) |
|---|
| | 1110 | name = "all"; |
|---|
| | 1111 | else |
|---|
| | 1112 | name = getPropertyName(static_cast<CSSPropertyID>(prop)); |
|---|
| | 1113 | list->append(CSSPrimitiveValue::create(name, CSSPrimitiveValue::CSS_STRING)); |
|---|
| | 1114 | } |
|---|
| | 1115 | } |
|---|
| | 1116 | else |
|---|
| | 1117 | list->append(CSSPrimitiveValue::create("all", CSSPrimitiveValue::CSS_STRING)); |
|---|
| | 1118 | return list.release(); |
|---|
| | 1119 | } |
|---|