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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 } | 1010 } |
1011 return cssValuePool().createIdentifierValue(valueId); | 1011 return cssValuePool().createIdentifierValue(valueId); |
1012 } | 1012 } |
1013 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunctio
n->x1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFun
ction->y2()); | 1013 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunctio
n->x1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFun
ction->y2()); |
1014 } | 1014 } |
1015 | 1015 |
1016 case TimingFunction::StepsFunction: | 1016 case TimingFunction::StepsFunction: |
1017 { | 1017 { |
1018 const StepsTimingFunction* stepsTimingFunction = toStepsTimingFuncti
on(timingFunction); | 1018 const StepsTimingFunction* stepsTimingFunction = toStepsTimingFuncti
on(timingFunction); |
1019 if (stepsTimingFunction->subType() == StepsTimingFunction::Custom) | 1019 if (stepsTimingFunction->subType() == StepsTimingFunction::Custom) |
1020 return CSSStepsTimingFunctionValue::create(stepsTimingFunction->
numberOfSteps(), stepsTimingFunction->stepAtStart()); | 1020 return CSSStepsTimingFunctionValue::create(stepsTimingFunction->
numberOfSteps(), stepsTimingFunction->stepAtPosition()); |
| 1021 |
1021 CSSValueID valueId; | 1022 CSSValueID valueId; |
1022 switch (stepsTimingFunction->subType()) { | 1023 switch (stepsTimingFunction->subType()) { |
1023 case StepsTimingFunction::Start: | 1024 case StepsTimingFunction::Start: |
1024 valueId = CSSValueStepStart; | 1025 valueId = CSSValueStepStart; |
1025 break; | 1026 break; |
1026 case StepsTimingFunction::End: | 1027 case StepsTimingFunction::End: |
1027 valueId = CSSValueStepEnd; | 1028 valueId = CSSValueStepEnd; |
1028 break; | 1029 break; |
1029 default: | 1030 default: |
1030 ASSERT_NOT_REACHED(); | 1031 ASSERT_NOT_REACHED(); |
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3034 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3035 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3035 CSSPropertyB
ackgroundClip }; | 3036 CSSPropertyB
ackgroundClip }; |
3036 | 3037 |
3037 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3038 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3038 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3039 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3039 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3040 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3040 return list.release(); | 3041 return list.release(); |
3041 } | 3042 } |
3042 | 3043 |
3043 } // namespace WebCore | 3044 } // namespace WebCore |
OLD | NEW |