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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 return CSSPrimitiveValue::create(svgStyle->filterResource(), CSS
PrimitiveValue::CSS_URI); | 157 return CSSPrimitiveValue::create(svgStyle->filterResource(), CSS
PrimitiveValue::CSS_URI); |
158 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 158 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
159 case CSSPropertyFloodColor: | 159 case CSSPropertyFloodColor: |
160 return currentColorOrValidColor(*style, svgStyle->floodColor()); | 160 return currentColorOrValidColor(*style, svgStyle->floodColor()); |
161 case CSSPropertyLightingColor: | 161 case CSSPropertyLightingColor: |
162 return currentColorOrValidColor(*style, svgStyle->lightingColor()); | 162 return currentColorOrValidColor(*style, svgStyle->lightingColor()); |
163 case CSSPropertyStopColor: | 163 case CSSPropertyStopColor: |
164 return currentColorOrValidColor(*style, svgStyle->stopColor()); | 164 return currentColorOrValidColor(*style, svgStyle->stopColor()); |
165 case CSSPropertyFill: | 165 case CSSPropertyFill: |
166 return adjustSVGPaintForCurrentColor(SVGPaint::create(svgStyle->fill
PaintType(), svgStyle->fillPaintUri(), svgStyle->fillPaintColor()), *style); | 166 return adjustSVGPaintForCurrentColor(SVGPaint::create(svgStyle->fill
PaintType(), svgStyle->fillPaintUri(), svgStyle->fillPaintColor()), *style); |
167 case CSSPropertyKerning: | |
168 return SVGLength::toCSSPrimitiveValue(svgStyle->kerning()); | |
169 case CSSPropertyMarkerEnd: | 167 case CSSPropertyMarkerEnd: |
170 if (!svgStyle->markerEndResource().isEmpty()) | 168 if (!svgStyle->markerEndResource().isEmpty()) |
171 return CSSPrimitiveValue::create(svgStyle->markerEndResource(),
CSSPrimitiveValue::CSS_URI); | 169 return CSSPrimitiveValue::create(svgStyle->markerEndResource(),
CSSPrimitiveValue::CSS_URI); |
172 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 170 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
173 case CSSPropertyMarkerMid: | 171 case CSSPropertyMarkerMid: |
174 if (!svgStyle->markerMidResource().isEmpty()) | 172 if (!svgStyle->markerMidResource().isEmpty()) |
175 return CSSPrimitiveValue::create(svgStyle->markerMidResource(),
CSSPrimitiveValue::CSS_URI); | 173 return CSSPrimitiveValue::create(svgStyle->markerMidResource(),
CSSPrimitiveValue::CSS_URI); |
176 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 174 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
177 case CSSPropertyMarkerStart: | 175 case CSSPropertyMarkerStart: |
178 if (!svgStyle->markerStartResource().isEmpty()) | 176 if (!svgStyle->markerStartResource().isEmpty()) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 default: | 225 default: |
228 // If you crash here, it's because you added a css property and are not
handling it | 226 // If you crash here, it's because you added a css property and are not
handling it |
229 // in either this switch statement or the one in CSSComputedStyleDelcara
tion::getPropertyCSSValue | 227 // in either this switch statement or the one in CSSComputedStyleDelcara
tion::getPropertyCSSValue |
230 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); | 228 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); |
231 } | 229 } |
232 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID); | 230 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID); |
233 return nullptr; | 231 return nullptr; |
234 } | 232 } |
235 | 233 |
236 } | 234 } |
OLD | NEW |