| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 Boston, MA 02110-1301, USA. | 18 Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 | 22 |
| 23 #if ENABLE(SVG) | 23 #if ENABLE(SVG) |
| 24 #include "core/css/CSSComputedStyleDeclaration.h" | 24 #include "core/css/CSSComputedStyleDeclaration.h" |
| 25 | 25 |
| 26 #include "CSSPropertyNames.h" | 26 #include "CSSPropertyNames.h" |
| 27 #include "Document.h" | |
| 28 #include "SVGPaint.h" | 27 #include "SVGPaint.h" |
| 29 #include "core/css/CSSPrimitiveValueMappings.h" | 28 #include "core/css/CSSPrimitiveValueMappings.h" |
| 29 #include "core/dom/Document.h" |
| 30 #include "core/rendering/style/RenderStyle.h" | 30 #include "core/rendering/style/RenderStyle.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 static PassRefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphO
rientation orientation) | 34 static PassRefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphO
rientation orientation) |
| 35 { | 35 { |
| 36 switch (orientation) { | 36 switch (orientation) { |
| 37 case GO_0DEG: | 37 case GO_0DEG: |
| 38 return CSSPrimitiveValue::create(0.0f, CSSPrimitiveValue::CSS_DEG); | 38 return CSSPrimitiveValue::create(0.0f, CSSPrimitiveValue::CSS_DEG); |
| 39 case GO_90DEG: | 39 case GO_90DEG: |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 208 } |
| 209 LOG_ERROR("unimplemented propertyID: %d", propertyID); | 209 LOG_ERROR("unimplemented propertyID: %d", propertyID); |
| 210 return 0; | 210 return 0; |
| 211 } | 211 } |
| 212 | 212 |
| 213 } | 213 } |
| 214 | 214 |
| 215 #endif // ENABLE(SVG) | 215 #endif // ENABLE(SVG) |
| 216 | 216 |
| 217 // vim:ts=4:noet | 217 // vim:ts=4:noet |
| OLD | NEW |