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, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-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 // Spec: If the markerWidth/markerHeight attribute is not specified, the eff
ect is as if a value of "3" were specified. | 60 // Spec: If the markerWidth/markerHeight attribute is not specified, the eff
ect is as if a value of "3" were specified. |
61 m_markerWidth->setDefaultValueAsString("3"); | 61 m_markerWidth->setDefaultValueAsString("3"); |
62 m_markerHeight->setDefaultValueAsString("3"); | 62 m_markerHeight->setDefaultValueAsString("3"); |
63 | 63 |
64 addToPropertyMap(m_refX); | 64 addToPropertyMap(m_refX); |
65 addToPropertyMap(m_refY); | 65 addToPropertyMap(m_refY); |
66 addToPropertyMap(m_markerWidth); | 66 addToPropertyMap(m_markerWidth); |
67 addToPropertyMap(m_markerHeight); | 67 addToPropertyMap(m_markerHeight); |
68 addToPropertyMap(m_orientAngle); | 68 addToPropertyMap(m_orientAngle); |
69 addToPropertyMap(m_markerUnits); | 69 addToPropertyMap(m_markerUnits); |
70 | |
71 registerAnimatedPropertiesForSVGMarkerElement(); | |
72 } | 70 } |
73 | 71 |
74 PassRefPtr<SVGMarkerElement> SVGMarkerElement::create(Document& document) | 72 PassRefPtr<SVGMarkerElement> SVGMarkerElement::create(Document& document) |
75 { | 73 { |
76 return adoptRef(new SVGMarkerElement(document)); | 74 return adoptRef(new SVGMarkerElement(document)); |
77 } | 75 } |
78 | 76 |
79 AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float
viewHeight) const | 77 AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float
viewHeight) const |
80 { | 78 { |
81 return SVGFitToViewBox::viewBoxToViewTransform(viewBox()->currentValue()->va
lue(), preserveAspectRatio()->currentValue(), viewWidth, viewHeight); | 79 return SVGFitToViewBox::viewBoxToViewTransform(viewBox()->currentValue()->va
lue(), preserveAspectRatio()->currentValue(), viewWidth, viewHeight); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 173 |
176 bool SVGMarkerElement::selfHasRelativeLengths() const | 174 bool SVGMarkerElement::selfHasRelativeLengths() const |
177 { | 175 { |
178 return m_refX->currentValue()->isRelative() | 176 return m_refX->currentValue()->isRelative() |
179 || m_refY->currentValue()->isRelative() | 177 || m_refY->currentValue()->isRelative() |
180 || m_markerWidth->currentValue()->isRelative() | 178 || m_markerWidth->currentValue()->isRelative() |
181 || m_markerHeight->currentValue()->isRelative(); | 179 || m_markerHeight->currentValue()->isRelative(); |
182 } | 180 } |
183 | 181 |
184 } | 182 } |
OLD | NEW |