OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 return cssValuePool().createIdentifierValue(valueId); | 1156 return cssValuePool().createIdentifierValue(valueId); |
1157 } | 1157 } |
1158 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunction->x
1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFunctio
n->y2()); | 1158 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunction->x
1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFunctio
n->y2()); |
1159 } | 1159 } |
1160 | 1160 |
1161 if (timingFunction->isStepsTimingFunction()) { | 1161 if (timingFunction->isStepsTimingFunction()) { |
1162 const StepsTimingFunction* stepsTimingFunction = static_cast<const Steps
TimingFunction*>(timingFunction); | 1162 const StepsTimingFunction* stepsTimingFunction = static_cast<const Steps
TimingFunction*>(timingFunction); |
1163 return CSSStepsTimingFunctionValue::create(stepsTimingFunction->numberOf
Steps(), stepsTimingFunction->stepAtStart()); | 1163 return CSSStepsTimingFunctionValue::create(stepsTimingFunction->numberOf
Steps(), stepsTimingFunction->stepAtStart()); |
1164 } | 1164 } |
1165 | 1165 |
1166 return CSSLinearTimingFunctionValue::create(); | 1166 return cssValuePool().createIdentifierValue(CSSValueLinear); |
1167 } | 1167 } |
1168 | 1168 |
1169 static PassRefPtr<CSSValue> valueForAnimationTimingFunction(const CSSAnimationDa
taList* animList) | 1169 static PassRefPtr<CSSValue> valueForAnimationTimingFunction(const CSSAnimationDa
taList* animList) |
1170 { | 1170 { |
1171 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); | 1171 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); |
1172 if (animList) { | 1172 if (animList) { |
1173 for (size_t i = 0; i < animList->size(); ++i) | 1173 for (size_t i = 0; i < animList->size(); ++i) |
1174 list->append(createTimingFunctionValue(animList->animation(i)->timin
gFunction().get())); | 1174 list->append(createTimingFunctionValue(animList->animation(i)->timin
gFunction().get())); |
1175 } else | 1175 } else |
1176 // Note that initialAnimationTimingFunction() is used for both transitio
ns and animations | 1176 // Note that initialAnimationTimingFunction() is used for both transitio
ns and animations |
(...skipping 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3154 CSSPropertyB
ackgroundClip }; | 3154 CSSPropertyB
ackgroundClip }; |
3155 | 3155 |
3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3159 return list.release(); | 3159 return list.release(); |
3160 } | 3160 } |
3161 | 3161 |
3162 } // namespace WebCore | 3162 } // namespace WebCore |
OLD | NEW |