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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 CSSPropertyWebkitTextEmphasisColor, | 309 CSSPropertyWebkitTextEmphasisColor, |
310 CSSPropertyWebkitTextEmphasisPosition, | 310 CSSPropertyWebkitTextEmphasisPosition, |
311 CSSPropertyWebkitTextEmphasisStyle, | 311 CSSPropertyWebkitTextEmphasisStyle, |
312 CSSPropertyWebkitTextFillColor, | 312 CSSPropertyWebkitTextFillColor, |
313 CSSPropertyWebkitTextOrientation, | 313 CSSPropertyWebkitTextOrientation, |
314 CSSPropertyWebkitTextSecurity, | 314 CSSPropertyWebkitTextSecurity, |
315 CSSPropertyWebkitTextStrokeColor, | 315 CSSPropertyWebkitTextStrokeColor, |
316 CSSPropertyWebkitTextStrokeWidth, | 316 CSSPropertyWebkitTextStrokeWidth, |
317 CSSPropertyWebkitTransform, | 317 CSSPropertyWebkitTransform, |
318 CSSPropertyWebkitTransformOrigin, | 318 CSSPropertyWebkitTransformOrigin, |
| 319 CSSPropertyTransformStyle, |
319 CSSPropertyWebkitTransformStyle, | 320 CSSPropertyWebkitTransformStyle, |
320 CSSPropertyWebkitTransitionDelay, | 321 CSSPropertyWebkitTransitionDelay, |
321 CSSPropertyWebkitTransitionDuration, | 322 CSSPropertyWebkitTransitionDuration, |
322 CSSPropertyWebkitTransitionProperty, | 323 CSSPropertyWebkitTransitionProperty, |
323 CSSPropertyWebkitTransitionTimingFunction, | 324 CSSPropertyWebkitTransitionTimingFunction, |
324 CSSPropertyWebkitUserDrag, | 325 CSSPropertyWebkitUserDrag, |
325 CSSPropertyWebkitUserModify, | 326 CSSPropertyWebkitUserModify, |
326 CSSPropertyWebkitUserSelect, | 327 CSSPropertyWebkitUserSelect, |
327 CSSPropertyWebkitWritingMode, | 328 CSSPropertyWebkitWritingMode, |
328 CSSPropertyWebkitAppRegion, | 329 CSSPropertyWebkitAppRegion, |
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 if (style->transformOriginZ() != 0) | 2563 if (style->transformOriginZ() != 0) |
2563 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); | 2564 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); |
2564 } else { | 2565 } else { |
2565 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), *style)); | 2566 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginX(), *style)); |
2566 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), *style)); | 2567 list->append(zoomAdjustedPixelValueForLength(style->transformOri
ginY(), *style)); |
2567 if (style->transformOriginZ() != 0) | 2568 if (style->transformOriginZ() != 0) |
2568 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); | 2569 list->append(zoomAdjustedPixelValue(style->transformOriginZ(
), *style)); |
2569 } | 2570 } |
2570 return list.release(); | 2571 return list.release(); |
2571 } | 2572 } |
| 2573 case CSSPropertyTransformStyle: |
2572 case CSSPropertyWebkitTransformStyle: | 2574 case CSSPropertyWebkitTransformStyle: |
2573 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); | 2575 return cssValuePool().createIdentifierValue((style->transformStyle3D
() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); |
2574 case CSSPropertyTransitionDelay: | 2576 case CSSPropertyTransitionDelay: |
2575 case CSSPropertyWebkitTransitionDelay: | 2577 case CSSPropertyWebkitTransitionDelay: |
2576 return valueForAnimationDelay(style->transitions()); | 2578 return valueForAnimationDelay(style->transitions()); |
2577 case CSSPropertyTransitionDuration: | 2579 case CSSPropertyTransitionDuration: |
2578 case CSSPropertyWebkitTransitionDuration: | 2580 case CSSPropertyWebkitTransitionDuration: |
2579 return valueForAnimationDuration(style->transitions()); | 2581 return valueForAnimationDuration(style->transitions()); |
2580 case CSSPropertyTransitionProperty: | 2582 case CSSPropertyTransitionProperty: |
2581 case CSSPropertyWebkitTransitionProperty: | 2583 case CSSPropertyWebkitTransitionProperty: |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 case CSSPropertyWebkitMaxLogicalHeight: | 2763 case CSSPropertyWebkitMaxLogicalHeight: |
2762 ASSERT_NOT_REACHED(); | 2764 ASSERT_NOT_REACHED(); |
2763 break; | 2765 break; |
2764 | 2766 |
2765 // FIXME: crbug.com/154772 Unimplemented css-transforms properties | 2767 // FIXME: crbug.com/154772 Unimplemented css-transforms properties |
2766 case CSSPropertyBackfaceVisibility: | 2768 case CSSPropertyBackfaceVisibility: |
2767 case CSSPropertyPerspective: | 2769 case CSSPropertyPerspective: |
2768 case CSSPropertyPerspectiveOrigin: | 2770 case CSSPropertyPerspectiveOrigin: |
2769 case CSSPropertyTransform: | 2771 case CSSPropertyTransform: |
2770 case CSSPropertyTransformOrigin: | 2772 case CSSPropertyTransformOrigin: |
2771 case CSSPropertyTransformStyle: | |
2772 break; | 2773 break; |
2773 | 2774 |
2774 /* Unimplemented @font-face properties */ | 2775 /* Unimplemented @font-face properties */ |
2775 case CSSPropertyFontStretch: | 2776 case CSSPropertyFontStretch: |
2776 case CSSPropertySrc: | 2777 case CSSPropertySrc: |
2777 case CSSPropertyUnicodeRange: | 2778 case CSSPropertyUnicodeRange: |
2778 break; | 2779 break; |
2779 | 2780 |
2780 /* Other unimplemented properties */ | 2781 /* Other unimplemented properties */ |
2781 case CSSPropertyPage: // for @page | 2782 case CSSPropertyPage: // for @page |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3045 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3046 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3046 CSSPropertyB
ackgroundClip }; | 3047 CSSPropertyB
ackgroundClip }; |
3047 | 3048 |
3048 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3049 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3049 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3051 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3051 return list.release(); | 3052 return list.release(); |
3052 } | 3053 } |
3053 | 3054 |
3054 } // namespace WebCore | 3055 } // namespace WebCore |
OLD | NEW |