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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 SVGMarkerOrientEnumeration::SVGMarkerOrientEnumeration(SVGAngle* angle) | 51 SVGMarkerOrientEnumeration::SVGMarkerOrientEnumeration(SVGAngle* angle) |
52 : SVGEnumeration<SVGMarkerOrientType>(SVGMarkerOrientAngle) | 52 : SVGEnumeration<SVGMarkerOrientType>(SVGMarkerOrientAngle) |
53 , m_angle(angle) | 53 , m_angle(angle) |
54 { | 54 { |
55 } | 55 } |
56 | 56 |
57 SVGMarkerOrientEnumeration::~SVGMarkerOrientEnumeration() | 57 SVGMarkerOrientEnumeration::~SVGMarkerOrientEnumeration() |
58 { | 58 { |
59 } | 59 } |
60 | 60 |
61 void SVGMarkerOrientEnumeration::trace(Visitor* visitor) | 61 DEFINE_TRACE(SVGMarkerOrientEnumeration) |
62 { | 62 { |
63 visitor->trace(m_angle); | 63 visitor->trace(m_angle); |
64 SVGEnumeration<SVGMarkerOrientType>::trace(visitor); | 64 SVGEnumeration<SVGMarkerOrientType>::trace(visitor); |
65 } | 65 } |
66 | 66 |
67 void SVGMarkerOrientEnumeration::notifyChange() | 67 void SVGMarkerOrientEnumeration::notifyChange() |
68 { | 68 { |
69 ASSERT(m_angle); | 69 ASSERT(m_angle); |
70 m_angle->orientTypeChanged(); | 70 m_angle->orientTypeChanged(); |
71 } | 71 } |
(...skipping 29 matching lines...) Expand all Loading... |
101 , m_valueInSpecifiedUnits(valueInSpecifiedUnits) | 101 , m_valueInSpecifiedUnits(valueInSpecifiedUnits) |
102 , m_orientType(SVGMarkerOrientEnumeration::create(this)) | 102 , m_orientType(SVGMarkerOrientEnumeration::create(this)) |
103 { | 103 { |
104 m_orientType->setEnumValue(orientType); | 104 m_orientType->setEnumValue(orientType); |
105 } | 105 } |
106 | 106 |
107 SVGAngle::~SVGAngle() | 107 SVGAngle::~SVGAngle() |
108 { | 108 { |
109 } | 109 } |
110 | 110 |
111 void SVGAngle::trace(Visitor* visitor) | 111 DEFINE_TRACE(SVGAngle) |
112 { | 112 { |
113 visitor->trace(m_orientType); | 113 visitor->trace(m_orientType); |
114 SVGPropertyHelper<SVGAngle>::trace(visitor); | 114 SVGPropertyHelper<SVGAngle>::trace(visitor); |
115 } | 115 } |
116 | 116 |
117 PassRefPtrWillBeRawPtr<SVGAngle> SVGAngle::clone() const | 117 PassRefPtrWillBeRawPtr<SVGAngle> SVGAngle::clone() const |
118 { | 118 { |
119 return adoptRefWillBeNoop(new SVGAngle(m_unitType, m_valueInSpecifiedUnits,
m_orientType->enumValue())); | 119 return adoptRefWillBeNoop(new SVGAngle(m_unitType, m_valueInSpecifiedUnits,
m_orientType->enumValue())); |
120 } | 120 } |
121 | 121 |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 void SVGAngle::orientTypeChanged() | 443 void SVGAngle::orientTypeChanged() |
444 { | 444 { |
445 if (orientType()->enumValue() == SVGMarkerOrientAuto || orientType()->enumVa
lue() == SVGMarkerOrientAutoStartReverse) { | 445 if (orientType()->enumValue() == SVGMarkerOrientAuto || orientType()->enumVa
lue() == SVGMarkerOrientAutoStartReverse) { |
446 m_unitType = SVG_ANGLETYPE_UNSPECIFIED; | 446 m_unitType = SVG_ANGLETYPE_UNSPECIFIED; |
447 m_valueInSpecifiedUnits = 0; | 447 m_valueInSpecifiedUnits = 0; |
448 } | 448 } |
449 } | 449 } |
450 | 450 |
451 } | 451 } |
OLD | NEW |