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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 CSSPropertyWebkitMaskBoxImageSource, | 290 CSSPropertyWebkitMaskBoxImageSource, |
291 CSSPropertyWebkitMaskBoxImageWidth, | 291 CSSPropertyWebkitMaskBoxImageWidth, |
292 CSSPropertyWebkitMaskClip, | 292 CSSPropertyWebkitMaskClip, |
293 CSSPropertyWebkitMaskComposite, | 293 CSSPropertyWebkitMaskComposite, |
294 CSSPropertyWebkitMaskImage, | 294 CSSPropertyWebkitMaskImage, |
295 CSSPropertyWebkitMaskOrigin, | 295 CSSPropertyWebkitMaskOrigin, |
296 CSSPropertyWebkitMaskPosition, | 296 CSSPropertyWebkitMaskPosition, |
297 CSSPropertyWebkitMaskRepeat, | 297 CSSPropertyWebkitMaskRepeat, |
298 CSSPropertyWebkitMaskSize, | 298 CSSPropertyWebkitMaskSize, |
299 CSSPropertyOrder, | 299 CSSPropertyOrder, |
| 300 CSSPropertyPerspective, |
300 CSSPropertyWebkitPerspective, | 301 CSSPropertyWebkitPerspective, |
301 CSSPropertyWebkitPerspectiveOrigin, | 302 CSSPropertyWebkitPerspectiveOrigin, |
302 CSSPropertyWebkitPrintColorAdjust, | 303 CSSPropertyWebkitPrintColorAdjust, |
303 CSSPropertyWebkitRtlOrdering, | 304 CSSPropertyWebkitRtlOrdering, |
304 CSSPropertyShapeInside, | 305 CSSPropertyShapeInside, |
305 CSSPropertyShapeOutside, | 306 CSSPropertyShapeOutside, |
306 CSSPropertyShapePadding, | 307 CSSPropertyShapePadding, |
307 CSSPropertyShapeImageThreshold, | 308 CSSPropertyShapeImageThreshold, |
308 CSSPropertyShapeMargin, | 309 CSSPropertyShapeMargin, |
309 CSSPropertyWebkitTapHighlightColor, | 310 CSSPropertyWebkitTapHighlightColor, |
(...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 return cssValuePool().createIdentifierValue(CSSValueNone); | 2502 return cssValuePool().createIdentifierValue(CSSValueNone); |
2502 case CSSPropertyWebkitFontSizeDelta: | 2503 case CSSPropertyWebkitFontSizeDelta: |
2503 // Not a real style property -- used by the editing engine -- so has
no computed value. | 2504 // Not a real style property -- used by the editing engine -- so has
no computed value. |
2504 break; | 2505 break; |
2505 case CSSPropertyWebkitMarginBottomCollapse: | 2506 case CSSPropertyWebkitMarginBottomCollapse: |
2506 case CSSPropertyWebkitMarginAfterCollapse: | 2507 case CSSPropertyWebkitMarginAfterCollapse: |
2507 return cssValuePool().createValue(style->marginAfterCollapse()); | 2508 return cssValuePool().createValue(style->marginAfterCollapse()); |
2508 case CSSPropertyWebkitMarginTopCollapse: | 2509 case CSSPropertyWebkitMarginTopCollapse: |
2509 case CSSPropertyWebkitMarginBeforeCollapse: | 2510 case CSSPropertyWebkitMarginBeforeCollapse: |
2510 return cssValuePool().createValue(style->marginBeforeCollapse()); | 2511 return cssValuePool().createValue(style->marginBeforeCollapse()); |
| 2512 case CSSPropertyPerspective: |
2511 case CSSPropertyWebkitPerspective: | 2513 case CSSPropertyWebkitPerspective: |
2512 if (!style->hasPerspective()) | 2514 if (!style->hasPerspective()) |
2513 return cssValuePool().createIdentifierValue(CSSValueNone); | 2515 return cssValuePool().createIdentifierValue(CSSValueNone); |
2514 return zoomAdjustedPixelValue(style->perspective(), *style); | 2516 return zoomAdjustedPixelValue(style->perspective(), *style); |
2515 case CSSPropertyWebkitPerspectiveOrigin: { | 2517 case CSSPropertyWebkitPerspectiveOrigin: { |
2516 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSep
arated(); | 2518 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSep
arated(); |
2517 if (renderer) { | 2519 if (renderer) { |
2518 LayoutRect box; | 2520 LayoutRect box; |
2519 if (renderer->isBox()) | 2521 if (renderer->isBox()) |
2520 box = toRenderBox(renderer)->borderBoxRect(); | 2522 box = toRenderBox(renderer)->borderBoxRect(); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 case CSSPropertyWebkitLogicalWidth: | 2768 case CSSPropertyWebkitLogicalWidth: |
2767 case CSSPropertyWebkitLogicalHeight: | 2769 case CSSPropertyWebkitLogicalHeight: |
2768 case CSSPropertyWebkitMinLogicalWidth: | 2770 case CSSPropertyWebkitMinLogicalWidth: |
2769 case CSSPropertyWebkitMinLogicalHeight: | 2771 case CSSPropertyWebkitMinLogicalHeight: |
2770 case CSSPropertyWebkitMaxLogicalWidth: | 2772 case CSSPropertyWebkitMaxLogicalWidth: |
2771 case CSSPropertyWebkitMaxLogicalHeight: | 2773 case CSSPropertyWebkitMaxLogicalHeight: |
2772 ASSERT_NOT_REACHED(); | 2774 ASSERT_NOT_REACHED(); |
2773 break; | 2775 break; |
2774 | 2776 |
2775 // FIXME: crbug.com/154772 Unimplemented css-transforms properties | 2777 // FIXME: crbug.com/154772 Unimplemented css-transforms properties |
2776 case CSSPropertyPerspective: | |
2777 case CSSPropertyPerspectiveOrigin: | 2778 case CSSPropertyPerspectiveOrigin: |
2778 case CSSPropertyTransform: | 2779 case CSSPropertyTransform: |
2779 case CSSPropertyTransformOrigin: | 2780 case CSSPropertyTransformOrigin: |
2780 break; | 2781 break; |
2781 | 2782 |
2782 /* Unimplemented @font-face properties */ | 2783 /* Unimplemented @font-face properties */ |
2783 case CSSPropertyFontStretch: | 2784 case CSSPropertyFontStretch: |
2784 case CSSPropertySrc: | 2785 case CSSPropertySrc: |
2785 case CSSPropertyUnicodeRange: | 2786 case CSSPropertyUnicodeRange: |
2786 break; | 2787 break; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3053 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3054 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3054 CSSPropertyB
ackgroundClip }; | 3055 CSSPropertyB
ackgroundClip }; |
3055 | 3056 |
3056 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3057 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3057 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3058 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)))); | 3059 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3059 return list.release(); | 3060 return list.release(); |
3060 } | 3061 } |
3061 | 3062 |
3062 } // namespace WebCore | 3063 } // namespace WebCore |
OLD | NEW |