Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 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 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 | 60 |
| 61 class SVGAngle : public SVGPropertyBase { | 61 class SVGAngle : public SVGPropertyBase { |
| 62 public: | 62 public: |
| 63 typedef SVGAngleTearOff TearOffType; | 63 typedef SVGAngleTearOff TearOffType; |
| 64 | 64 |
| 65 enum SVGAngleType { | 65 enum SVGAngleType { |
| 66 SVG_ANGLETYPE_UNKNOWN = 0, | 66 SVG_ANGLETYPE_UNKNOWN = 0, |
| 67 SVG_ANGLETYPE_UNSPECIFIED = 1, | 67 SVG_ANGLETYPE_UNSPECIFIED = 1, |
| 68 SVG_ANGLETYPE_DEG = 2, | 68 SVG_ANGLETYPE_DEG = 2, |
| 69 SVG_ANGLETYPE_RAD = 3, | 69 SVG_ANGLETYPE_RAD = 3, |
| 70 SVG_ANGLETYPE_GRAD = 4 | 70 SVG_ANGLETYPE_GRAD = 4, |
| 71 SVG_ANGLETYPE_TURN = 5 | |
|
fs
2014/06/02 12:49:39
Should this be exposed on the DOM SVGAngle interfa
Erik Dahlström (inactive)
2014/06/03 15:30:29
Will raise this in the WG, but I think we should s
| |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 static PassRefPtr<SVGAngle> create() | 74 static PassRefPtr<SVGAngle> create() |
| 74 { | 75 { |
| 75 return adoptRef(new SVGAngle()); | 76 return adoptRef(new SVGAngle()); |
| 76 } | 77 } |
| 77 | 78 |
| 78 virtual ~SVGAngle(); | 79 virtual ~SVGAngle(); |
| 79 | 80 |
| 80 SVGAngleType unitType() const { return m_unitType; } | 81 SVGAngleType unitType() const { return m_unitType; } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 inline PassRefPtr<SVGAngle> toSVGAngle(PassRefPtr<SVGPropertyBase> passBase) | 118 inline PassRefPtr<SVGAngle> toSVGAngle(PassRefPtr<SVGPropertyBase> passBase) |
| 118 { | 119 { |
| 119 RefPtr<SVGPropertyBase> base = passBase; | 120 RefPtr<SVGPropertyBase> base = passBase; |
| 120 ASSERT(base->type() == SVGAngle::classType()); | 121 ASSERT(base->type() == SVGAngle::classType()); |
| 121 return static_pointer_cast<SVGAngle>(base.release()); | 122 return static_pointer_cast<SVGAngle>(base.release()); |
| 122 } | 123 } |
| 123 | 124 |
| 124 } // namespace WebCore | 125 } // namespace WebCore |
| 125 | 126 |
| 126 #endif // SVGAngle_h | 127 #endif // SVGAngle_h |
| OLD | NEW |