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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 CSSPropertyWebkitTextDecorationLine, | 191 CSSPropertyWebkitTextDecorationLine, |
192 CSSPropertyWebkitTextDecorationStyle, | 192 CSSPropertyWebkitTextDecorationStyle, |
193 CSSPropertyWebkitTextAlignLast, | 193 CSSPropertyWebkitTextAlignLast, |
194 #endif // CSS3_TEXT | 194 #endif // CSS3_TEXT |
195 CSSPropertyTextIndent, | 195 CSSPropertyTextIndent, |
196 CSSPropertyTextRendering, | 196 CSSPropertyTextRendering, |
197 CSSPropertyTextShadow, | 197 CSSPropertyTextShadow, |
198 CSSPropertyTextOverflow, | 198 CSSPropertyTextOverflow, |
199 CSSPropertyTextTransform, | 199 CSSPropertyTextTransform, |
200 CSSPropertyTop, | 200 CSSPropertyTop, |
| 201 CSSPropertyTransitionDelay, |
| 202 CSSPropertyTransitionDuration, |
| 203 CSSPropertyTransitionProperty, |
| 204 CSSPropertyTransitionTimingFunction, |
201 CSSPropertyUnicodeBidi, | 205 CSSPropertyUnicodeBidi, |
202 CSSPropertyVerticalAlign, | 206 CSSPropertyVerticalAlign, |
203 CSSPropertyVisibility, | 207 CSSPropertyVisibility, |
204 CSSPropertyWhiteSpace, | 208 CSSPropertyWhiteSpace, |
205 CSSPropertyWidows, | 209 CSSPropertyWidows, |
206 CSSPropertyWidth, | 210 CSSPropertyWidth, |
207 CSSPropertyWordBreak, | 211 CSSPropertyWordBreak, |
208 CSSPropertyWordSpacing, | 212 CSSPropertyWordSpacing, |
209 CSSPropertyWordWrap, | 213 CSSPropertyWordWrap, |
210 CSSPropertyZIndex, | 214 CSSPropertyZIndex, |
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 } else { | 2514 } else { |
2511 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), style.get())); | 2515 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), style.get())); |
2512 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), style.get())); | 2516 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), style.get())); |
2513 if (style->transformOriginZ() != 0) | 2517 if (style->transformOriginZ() != 0) |
2514 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), style.get())); | 2518 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), style.get())); |
2515 } | 2519 } |
2516 return list.release(); | 2520 return list.release(); |
2517 } | 2521 } |
2518 case CSSPropertyWebkitTransformStyle: | 2522 case CSSPropertyWebkitTransformStyle: |
2519 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); | 2523 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); |
| 2524 case CSSPropertyTransitionDelay: |
2520 case CSSPropertyWebkitTransitionDelay: | 2525 case CSSPropertyWebkitTransitionDelay: |
2521 return getDelayValue(style->transitions()); | 2526 return getDelayValue(style->transitions()); |
| 2527 case CSSPropertyTransitionDuration: |
2522 case CSSPropertyWebkitTransitionDuration: | 2528 case CSSPropertyWebkitTransitionDuration: |
2523 return getDurationValue(style->transitions()); | 2529 return getDurationValue(style->transitions()); |
| 2530 case CSSPropertyTransitionProperty: |
2524 case CSSPropertyWebkitTransitionProperty: | 2531 case CSSPropertyWebkitTransitionProperty: |
2525 return getTransitionPropertyValue(style->transitions()); | 2532 return getTransitionPropertyValue(style->transitions()); |
| 2533 case CSSPropertyTransitionTimingFunction: |
2526 case CSSPropertyWebkitTransitionTimingFunction: | 2534 case CSSPropertyWebkitTransitionTimingFunction: |
2527 return getTimingFunctionValue(style->transitions()); | 2535 return getTimingFunctionValue(style->transitions()); |
| 2536 case CSSPropertyTransition: |
2528 case CSSPropertyWebkitTransition: { | 2537 case CSSPropertyWebkitTransition: { |
2529 const AnimationList* animList = style->transitions(); | 2538 const AnimationList* animList = style->transitions(); |
2530 if (animList) { | 2539 if (animList) { |
2531 RefPtr<CSSValueList> transitionsList = CSSValueList::createComma
Separated(); | 2540 RefPtr<CSSValueList> transitionsList = CSSValueList::createComma
Separated(); |
2532 for (size_t i = 0; i < animList->size(); ++i) { | 2541 for (size_t i = 0; i < animList->size(); ++i) { |
2533 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparat
ed(); | 2542 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparat
ed(); |
2534 const Animation* animation = animList->animation(i); | 2543 const Animation* animation = animList->animation(i); |
2535 list->append(createTransitionPropertyValue(animation)); | 2544 list->append(createTransitionPropertyValue(animation)); |
2536 list->append(cssValuePool().createValue(animation->duration(
), CSSPrimitiveValue::CSS_S)); | 2545 list->append(cssValuePool().createValue(animation->duration(
), CSSPrimitiveValue::CSS_S)); |
2537 list->append(createTimingFunctionValue(animation->timingFunc
tion().get())); | 2546 list->append(createTimingFunctionValue(animation->timingFunc
tion().get())); |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3013 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3022 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3014 CSSPropertyB
ackgroundClip }; | 3023 CSSPropertyB
ackgroundClip }; |
3015 | 3024 |
3016 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3025 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
3017 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); | 3026 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); |
3018 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); | 3027 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); |
3019 return list.release(); | 3028 return list.release(); |
3020 } | 3029 } |
3021 | 3030 |
3022 } // namespace WebCore | 3031 } // namespace WebCore |
OLD | NEW |