| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 struct SVGPropertyTraits<SVGMarkerOrientType> { | 79 struct SVGPropertyTraits<SVGMarkerOrientType> { |
| 80 static unsigned highestEnumValue() { return SVGMarkerOrientAngle; } | 80 static unsigned highestEnumValue() { return SVGMarkerOrientAngle; } |
| 81 | 81 |
| 82 // toString is not needed, synchronizeOrientType() handles this on its own. | 82 // toString is not needed, synchronizeOrientType() handles this on its own. |
| 83 | 83 |
| 84 static SVGMarkerOrientType fromString(const String& value, SVGAngle& angle) | 84 static SVGMarkerOrientType fromString(const String& value, SVGAngle& angle) |
| 85 { | 85 { |
| 86 if (value == "auto") | 86 if (value == "auto") |
| 87 return SVGMarkerOrientAuto; | 87 return SVGMarkerOrientAuto; |
| 88 | 88 |
| 89 TrackExceptionState es; | 89 TrackExceptionState exceptionState; |
| 90 angle.setValueAsString(value, es); | 90 angle.setValueAsString(value, exceptionState); |
| 91 if (!es.hadException()) | 91 if (!exceptionState.hadException()) |
| 92 return SVGMarkerOrientAngle; | 92 return SVGMarkerOrientAngle; |
| 93 return SVGMarkerOrientUnknown; | 93 return SVGMarkerOrientUnknown; |
| 94 } | 94 } |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 class SVGMarkerElement FINAL : public SVGElement, | 97 class SVGMarkerElement FINAL : public SVGElement, |
| 98 public SVGExternalResourcesRequired, | 98 public SVGExternalResourcesRequired, |
| 99 public SVGFitToViewBox { | 99 public SVGFitToViewBox { |
| 100 public: | 100 public: |
| 101 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 101 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 private: | 164 private: |
| 165 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType; | 165 mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag)); | 168 DEFINE_NODE_TYPE_CASTS(SVGMarkerElement, hasTagName(SVGNames::markerTag)); |
| 169 | 169 |
| 170 } | 170 } |
| 171 | 171 |
| 172 #endif | 172 #endif |
| OLD | NEW |