| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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, |
| 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 #ifndef SVGLength_h | 21 #ifndef SVGLength_h |
| 22 #define SVGLength_h | 22 #define SVGLength_h |
| 23 | 23 |
| 24 #include "bindings/v8/ExceptionMessages.h" | 24 #include "bindings/v8/ExceptionMessages.h" |
| 25 #include "bindings/v8/ExceptionStatePlaceholder.h" | 25 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 26 #include "bindings/v8/ScriptWrappable.h" | |
| 27 #include "core/dom/ExceptionCode.h" | |
| 28 #include "core/svg/SVGLengthContext.h" | 26 #include "core/svg/SVGLengthContext.h" |
| 29 #include "core/svg/SVGParsingError.h" | |
| 30 #include "core/svg/properties/NewSVGProperty.h" | 27 #include "core/svg/properties/NewSVGProperty.h" |
| 31 | 28 |
| 32 namespace WebCore { | 29 namespace WebCore { |
| 33 | 30 |
| 34 /* use SVGLength.h decls */ | |
| 35 class CSSPrimitiveValue; | 31 class CSSPrimitiveValue; |
| 36 class ExceptionState; | 32 class ExceptionState; |
| 37 class QualifiedName; | 33 class QualifiedName; |
| 38 | 34 |
| 39 enum SVGLengthNegativeValuesMode { | 35 enum SVGLengthNegativeValuesMode { |
| 40 AllowNegativeLengths, | 36 AllowNegativeLengths, |
| 41 ForbidNegativeLengths | 37 ForbidNegativeLengths |
| 42 }; | 38 }; |
| 43 | 39 |
| 44 class SVGLengthTearOff; | 40 class SVGLengthTearOff; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 inline PassRefPtr<SVGLength> toSVGLength(PassRefPtr<NewSVGPropertyBase> passBase
) | 113 inline PassRefPtr<SVGLength> toSVGLength(PassRefPtr<NewSVGPropertyBase> passBase
) |
| 118 { | 114 { |
| 119 RefPtr<NewSVGPropertyBase> base = passBase; | 115 RefPtr<NewSVGPropertyBase> base = passBase; |
| 120 ASSERT(base->type() == SVGLength::classType()); | 116 ASSERT(base->type() == SVGLength::classType()); |
| 121 return static_pointer_cast<SVGLength>(base.release()); | 117 return static_pointer_cast<SVGLength>(base.release()); |
| 122 } | 118 } |
| 123 | 119 |
| 124 } // namespace WebCore | 120 } // namespace WebCore |
| 125 | 121 |
| 126 #endif // SVGLength_h | 122 #endif // SVGLength_h |
| OLD | NEW |