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, |
(...skipping 24 matching lines...) Expand all Loading... |
35 AllowNegativeLengths, | 35 AllowNegativeLengths, |
36 ForbidNegativeLengths | 36 ForbidNegativeLengths |
37 }; | 37 }; |
38 | 38 |
39 class SVGLengthTearOff; | 39 class SVGLengthTearOff; |
40 | 40 |
41 class SVGLength final : public SVGPropertyBase { | 41 class SVGLength final : public SVGPropertyBase { |
42 public: | 42 public: |
43 typedef SVGLengthTearOff TearOffType; | 43 typedef SVGLengthTearOff TearOffType; |
44 | 44 |
45 static PassRefPtrWillBeRawPtr<SVGLength> create(SVGLengthMode mode = LengthM
odeOther) | 45 static PassRefPtrWillBeRawPtr<SVGLength> create(SVGLengthMode mode = SVGLeng
thMode::Other) |
46 { | 46 { |
47 return adoptRefWillBeNoop(new SVGLength(mode)); | 47 return adoptRefWillBeNoop(new SVGLength(mode)); |
48 } | 48 } |
49 | 49 |
50 PassRefPtrWillBeRawPtr<SVGLength> clone() const; | 50 PassRefPtrWillBeRawPtr<SVGLength> clone() const; |
51 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const Stri
ng&) const override; | 51 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const Stri
ng&) const override; |
52 | 52 |
53 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitTyp
e); } | 53 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitTyp
e); } |
54 CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const | 54 CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const |
55 { | 55 { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 inline PassRefPtrWillBeRawPtr<SVGLength> toSVGLength(PassRefPtrWillBeRawPtr<SVGP
ropertyBase> passBase) | 122 inline PassRefPtrWillBeRawPtr<SVGLength> toSVGLength(PassRefPtrWillBeRawPtr<SVGP
ropertyBase> passBase) |
123 { | 123 { |
124 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; | 124 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; |
125 ASSERT(base->type() == SVGLength::classType()); | 125 ASSERT(base->type() == SVGLength::classType()); |
126 return static_pointer_cast<SVGLength>(base.release()); | 126 return static_pointer_cast<SVGLength>(base.release()); |
127 } | 127 } |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
130 | 130 |
131 #endif // SVGLength_h | 131 #endif // SVGLength_h |
OLD | NEW |