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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 CSSPropertyWebkitAnimationDelay, | 215 CSSPropertyWebkitAnimationDelay, |
216 CSSPropertyWebkitAnimationDirection, | 216 CSSPropertyWebkitAnimationDirection, |
217 CSSPropertyWebkitAnimationDuration, | 217 CSSPropertyWebkitAnimationDuration, |
218 CSSPropertyWebkitAnimationFillMode, | 218 CSSPropertyWebkitAnimationFillMode, |
219 CSSPropertyWebkitAnimationIterationCount, | 219 CSSPropertyWebkitAnimationIterationCount, |
220 CSSPropertyWebkitAnimationName, | 220 CSSPropertyWebkitAnimationName, |
221 CSSPropertyWebkitAnimationPlayState, | 221 CSSPropertyWebkitAnimationPlayState, |
222 CSSPropertyWebkitAnimationTimingFunction, | 222 CSSPropertyWebkitAnimationTimingFunction, |
223 CSSPropertyWebkitAppearance, | 223 CSSPropertyWebkitAppearance, |
224 CSSPropertyBackfaceVisibility, | |
225 CSSPropertyWebkitBackfaceVisibility, | 224 CSSPropertyWebkitBackfaceVisibility, |
226 CSSPropertyWebkitBackgroundClip, | 225 CSSPropertyWebkitBackgroundClip, |
227 CSSPropertyWebkitBackgroundComposite, | 226 CSSPropertyWebkitBackgroundComposite, |
228 CSSPropertyWebkitBackgroundOrigin, | 227 CSSPropertyWebkitBackgroundOrigin, |
229 CSSPropertyWebkitBackgroundSize, | 228 CSSPropertyWebkitBackgroundSize, |
230 CSSPropertyWebkitBorderFit, | 229 CSSPropertyWebkitBorderFit, |
231 CSSPropertyWebkitBorderHorizontalSpacing, | 230 CSSPropertyWebkitBorderHorizontalSpacing, |
232 CSSPropertyWebkitBorderImage, | 231 CSSPropertyWebkitBorderImage, |
233 CSSPropertyWebkitBorderVerticalSpacing, | 232 CSSPropertyWebkitBorderVerticalSpacing, |
234 CSSPropertyWebkitBoxAlign, | 233 CSSPropertyWebkitBoxAlign, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 CSSPropertyWebkitTextEmphasisColor, | 311 CSSPropertyWebkitTextEmphasisColor, |
313 CSSPropertyWebkitTextEmphasisPosition, | 312 CSSPropertyWebkitTextEmphasisPosition, |
314 CSSPropertyWebkitTextEmphasisStyle, | 313 CSSPropertyWebkitTextEmphasisStyle, |
315 CSSPropertyWebkitTextFillColor, | 314 CSSPropertyWebkitTextFillColor, |
316 CSSPropertyWebkitTextOrientation, | 315 CSSPropertyWebkitTextOrientation, |
317 CSSPropertyWebkitTextSecurity, | 316 CSSPropertyWebkitTextSecurity, |
318 CSSPropertyWebkitTextStrokeColor, | 317 CSSPropertyWebkitTextStrokeColor, |
319 CSSPropertyWebkitTextStrokeWidth, | 318 CSSPropertyWebkitTextStrokeWidth, |
320 CSSPropertyWebkitTransform, | 319 CSSPropertyWebkitTransform, |
321 CSSPropertyWebkitTransformOrigin, | 320 CSSPropertyWebkitTransformOrigin, |
322 CSSPropertyTransformStyle, | |
323 CSSPropertyWebkitTransformStyle, | 321 CSSPropertyWebkitTransformStyle, |
324 CSSPropertyWebkitTransitionDelay, | 322 CSSPropertyWebkitTransitionDelay, |
325 CSSPropertyWebkitTransitionDuration, | 323 CSSPropertyWebkitTransitionDuration, |
326 CSSPropertyWebkitTransitionProperty, | 324 CSSPropertyWebkitTransitionProperty, |
327 CSSPropertyWebkitTransitionTimingFunction, | 325 CSSPropertyWebkitTransitionTimingFunction, |
328 CSSPropertyWebkitUserDrag, | 326 CSSPropertyWebkitUserDrag, |
329 CSSPropertyWebkitUserModify, | 327 CSSPropertyWebkitUserModify, |
330 CSSPropertyWebkitUserSelect, | 328 CSSPropertyWebkitUserSelect, |
331 CSSPropertyWebkitWritingMode, | 329 CSSPropertyWebkitWritingMode, |
332 CSSPropertyWebkitAppRegion, | 330 CSSPropertyWebkitAppRegion, |
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 // Initial animation-play-state. | 2463 // Initial animation-play-state. |
2466 list->append(cssValuePool().createIdentifierValue(CSSValueRunning)); | 2464 list->append(cssValuePool().createIdentifierValue(CSSValueRunning)); |
2467 return list.release(); | 2465 return list.release(); |
2468 } | 2466 } |
2469 case CSSPropertyWebkitAppearance: | 2467 case CSSPropertyWebkitAppearance: |
2470 return cssValuePool().createValue(style->appearance()); | 2468 return cssValuePool().createValue(style->appearance()); |
2471 case CSSPropertyWebkitAspectRatio: | 2469 case CSSPropertyWebkitAspectRatio: |
2472 if (!style->hasAspectRatio()) | 2470 if (!style->hasAspectRatio()) |
2473 return cssValuePool().createIdentifierValue(CSSValueNone); | 2471 return cssValuePool().createIdentifierValue(CSSValueNone); |
2474 return CSSAspectRatioValue::create(style->aspectRatioNumerator(), st
yle->aspectRatioDenominator()); | 2472 return CSSAspectRatioValue::create(style->aspectRatioNumerator(), st
yle->aspectRatioDenominator()); |
2475 case CSSPropertyBackfaceVisibility: | |
2476 case CSSPropertyWebkitBackfaceVisibility: | 2473 case CSSPropertyWebkitBackfaceVisibility: |
2477 return cssValuePool().createIdentifierValue((style->backfaceVisibili
ty() == BackfaceVisibilityHidden) ? CSSValueHidden : CSSValueVisible); | 2474 return cssValuePool().createIdentifierValue((style->backfaceVisibili
ty() == BackfaceVisibilityHidden) ? CSSValueHidden : CSSValueVisible); |
2478 case CSSPropertyWebkitBorderImage: | 2475 case CSSPropertyWebkitBorderImage: |
2479 return valueForNinePieceImage(style->borderImage(), *style); | 2476 return valueForNinePieceImage(style->borderImage(), *style); |
2480 case CSSPropertyBorderImageOutset: | 2477 case CSSPropertyBorderImageOutset: |
2481 return valueForNinePieceImageQuad(style->borderImage().outset(), *st
yle); | 2478 return valueForNinePieceImageQuad(style->borderImage().outset(), *st
yle); |
2482 case CSSPropertyBorderImageRepeat: | 2479 case CSSPropertyBorderImageRepeat: |
2483 return valueForNinePieceImageRepeat(style->borderImage()); | 2480 return valueForNinePieceImageRepeat(style->borderImage()); |
2484 case CSSPropertyBorderImageSlice: | 2481 case CSSPropertyBorderImageSlice: |
2485 return valueForNinePieceImageSlice(style->borderImage()); | 2482 return valueForNinePieceImageSlice(style->borderImage()); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2571 if (style->transformOriginZ() != 0) | 2568 if (style->transformOriginZ() != 0) |
2572 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); | 2569 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); |
2573 } else { | 2570 } else { |
2574 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), *style)); | 2571 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), *style)); |
2575 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), *style)); | 2572 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), *style)); |
2576 if (style->transformOriginZ() != 0) | 2573 if (style->transformOriginZ() != 0) |
2577 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); | 2574 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); |
2578 } | 2575 } |
2579 return list.release(); | 2576 return list.release(); |
2580 } | 2577 } |
2581 case CSSPropertyTransformStyle: | |
2582 case CSSPropertyWebkitTransformStyle: | 2578 case CSSPropertyWebkitTransformStyle: |
2583 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); | 2579 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); |
2584 case CSSPropertyTransitionDelay: | 2580 case CSSPropertyTransitionDelay: |
2585 case CSSPropertyWebkitTransitionDelay: | 2581 case CSSPropertyWebkitTransitionDelay: |
2586 return valueForAnimationDelay(style->transitions()); | 2582 return valueForAnimationDelay(style->transitions()); |
2587 case CSSPropertyTransitionDuration: | 2583 case CSSPropertyTransitionDuration: |
2588 case CSSPropertyWebkitTransitionDuration: | 2584 case CSSPropertyWebkitTransitionDuration: |
2589 return valueForAnimationDuration(style->transitions()); | 2585 return valueForAnimationDuration(style->transitions()); |
2590 case CSSPropertyTransitionProperty: | 2586 case CSSPropertyTransitionProperty: |
2591 case CSSPropertyWebkitTransitionProperty: | 2587 case CSSPropertyWebkitTransitionProperty: |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 case CSSPropertyWebkitPaddingBefore: | 2761 case CSSPropertyWebkitPaddingBefore: |
2766 case CSSPropertyWebkitLogicalWidth: | 2762 case CSSPropertyWebkitLogicalWidth: |
2767 case CSSPropertyWebkitLogicalHeight: | 2763 case CSSPropertyWebkitLogicalHeight: |
2768 case CSSPropertyWebkitMinLogicalWidth: | 2764 case CSSPropertyWebkitMinLogicalWidth: |
2769 case CSSPropertyWebkitMinLogicalHeight: | 2765 case CSSPropertyWebkitMinLogicalHeight: |
2770 case CSSPropertyWebkitMaxLogicalWidth: | 2766 case CSSPropertyWebkitMaxLogicalWidth: |
2771 case CSSPropertyWebkitMaxLogicalHeight: | 2767 case CSSPropertyWebkitMaxLogicalHeight: |
2772 ASSERT_NOT_REACHED(); | 2768 ASSERT_NOT_REACHED(); |
2773 break; | 2769 break; |
2774 | 2770 |
2775 // FIXME: crbug.com/154772 Unimplemented css-transforms properties | |
2776 case CSSPropertyPerspective: | |
2777 case CSSPropertyPerspectiveOrigin: | |
2778 case CSSPropertyTransform: | |
2779 case CSSPropertyTransformOrigin: | |
2780 break; | |
2781 | |
2782 /* Unimplemented @font-face properties */ | 2771 /* Unimplemented @font-face properties */ |
2783 case CSSPropertyFontStretch: | 2772 case CSSPropertyFontStretch: |
2784 case CSSPropertySrc: | 2773 case CSSPropertySrc: |
2785 case CSSPropertyUnicodeRange: | 2774 case CSSPropertyUnicodeRange: |
2786 break; | 2775 break; |
2787 | 2776 |
2788 /* Other unimplemented properties */ | 2777 /* Other unimplemented properties */ |
2789 case CSSPropertyPage: // for @page | 2778 case CSSPropertyPage: // for @page |
2790 case CSSPropertyQuotes: // FIXME: needs implementation | 2779 case CSSPropertyQuotes: // FIXME: needs implementation |
2791 case CSSPropertySize: // for @page | 2780 case CSSPropertySize: // for @page |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3053 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3042 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3054 CSSPropertyB
ackgroundClip }; | 3043 CSSPropertyB
ackgroundClip }; |
3055 | 3044 |
3056 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3045 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3057 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3046 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3058 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3047 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3059 return list.release(); | 3048 return list.release(); |
3060 } | 3049 } |
3061 | 3050 |
3062 } // namespace WebCore | 3051 } // namespace WebCore |
OLD | NEW |