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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 case TextDecorationStyleSolid: | 1265 case TextDecorationStyleSolid: |
1266 return cssValuePool().createIdentifierValue(CSSValueSolid); | 1266 return cssValuePool().createIdentifierValue(CSSValueSolid); |
1267 case TextDecorationStyleDouble: | 1267 case TextDecorationStyleDouble: |
1268 return cssValuePool().createIdentifierValue(CSSValueDouble); | 1268 return cssValuePool().createIdentifierValue(CSSValueDouble); |
1269 case TextDecorationStyleDotted: | 1269 case TextDecorationStyleDotted: |
1270 return cssValuePool().createIdentifierValue(CSSValueDotted); | 1270 return cssValuePool().createIdentifierValue(CSSValueDotted); |
1271 case TextDecorationStyleDashed: | 1271 case TextDecorationStyleDashed: |
1272 return cssValuePool().createIdentifierValue(CSSValueDashed); | 1272 return cssValuePool().createIdentifierValue(CSSValueDashed); |
1273 case TextDecorationStyleWavy: | 1273 case TextDecorationStyleWavy: |
1274 return cssValuePool().createIdentifierValue(CSSValueWavy); | 1274 return cssValuePool().createIdentifierValue(CSSValueWavy); |
| 1275 case TextDecorationStyleNone: |
| 1276 break; |
1275 } | 1277 } |
1276 | 1278 |
1277 ASSERT_NOT_REACHED(); | 1279 ASSERT_NOT_REACHED(); |
1278 return cssValuePool().createExplicitInitialValue(); | 1280 return cssValuePool().createExplicitInitialValue(); |
1279 } | 1281 } |
1280 | 1282 |
1281 static PassRefPtrWillBeRawPtr<CSSValue> valueForFillRepeat(EFillRepeat xRepeat,
EFillRepeat yRepeat) | 1283 static PassRefPtrWillBeRawPtr<CSSValue> valueForFillRepeat(EFillRepeat xRepeat,
EFillRepeat yRepeat) |
1282 { | 1284 { |
1283 // For backwards compatibility, if both values are equal, just return one of
them. And | 1285 // For backwards compatibility, if both values are equal, just return one of
them. And |
1284 // if the two values are equivalent to repeat-x or repeat-y, just return the
shorthand. | 1286 // if the two values are equivalent to repeat-x or repeat-y, just return the
shorthand. |
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3044 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3043 CSSPropertyB
ackgroundClip }; | 3045 CSSPropertyB
ackgroundClip }; |
3044 | 3046 |
3045 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3047 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3046 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3048 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3047 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3049 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3048 return list.release(); | 3050 return list.release(); |
3049 } | 3051 } |
3050 | 3052 |
3051 } // namespace WebCore | 3053 } // namespace WebCore |
OLD | NEW |