OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 3 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 27 matching lines...) Expand all Loading... |
38 return CSSPrimitiveValue::create(90.0f, CSSPrimitiveValue::CSS_DEG); | 38 return CSSPrimitiveValue::create(90.0f, CSSPrimitiveValue::CSS_DEG); |
39 case GO_180DEG: | 39 case GO_180DEG: |
40 return CSSPrimitiveValue::create(180.0f, CSSPrimitiveValue::CSS_DEG)
; | 40 return CSSPrimitiveValue::create(180.0f, CSSPrimitiveValue::CSS_DEG)
; |
41 case GO_270DEG: | 41 case GO_270DEG: |
42 return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG)
; | 42 return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG)
; |
43 default: | 43 default: |
44 return nullptr; | 44 return nullptr; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 static PassRefPtrWillBeRawPtr<CSSValue> strokeDashArrayToCSSValueList(PassRefPtr
<SVGLengthList> passDashes) | 48 static PassRefPtrWillBeRawPtr<CSSValue> strokeDashArrayToCSSValueList(PassRefPtr
WillBeRawPtr<SVGLengthList> passDashes) |
49 { | 49 { |
50 RefPtr<SVGLengthList> dashes = passDashes; | 50 RefPtrWillBeRawPtr<SVGLengthList> dashes = passDashes; |
51 | 51 |
52 if (dashes->isEmpty()) | 52 if (dashes->isEmpty()) |
53 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 53 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
54 | 54 |
55 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated()
; | 55 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated()
; |
56 SVGLengthList::ConstIterator it = dashes->begin(); | 56 SVGLengthList::ConstIterator it = dashes->begin(); |
57 SVGLengthList::ConstIterator itEnd = dashes->end(); | 57 SVGLengthList::ConstIterator itEnd = dashes->end(); |
58 for (; it != itEnd; ++it) | 58 for (; it != itEnd; ++it) |
59 list->append(SVGLength::toCSSPrimitiveValue(*it)); | 59 list->append(SVGLength::toCSSPrimitiveValue(*it)); |
60 | 60 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 default: | 239 default: |
240 // If you crash here, it's because you added a css property and are not
handling it | 240 // If you crash here, it's because you added a css property and are not
handling it |
241 // in either this switch statement or the one in CSSComputedStyleDelcara
tion::getPropertyCSSValue | 241 // in either this switch statement or the one in CSSComputedStyleDelcara
tion::getPropertyCSSValue |
242 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); | 242 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); |
243 } | 243 } |
244 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID); | 244 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID); |
245 return nullptr; | 245 return nullptr; |
246 } | 246 } |
247 | 247 |
248 } | 248 } |
OLD | NEW |