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 | 70 |
haraken
2014/03/05 14:05:27
Nit: Unnecessary empty line.
kouhei (in TOK)
2014/03/06 01:55:14
Done.
| |
71 registerAnimatedPropertiesForSVGMarkerElement(); | |
72 } | 71 } |
73 | 72 |
74 PassRefPtr<SVGMarkerElement> SVGMarkerElement::create(Document& document) | 73 PassRefPtr<SVGMarkerElement> SVGMarkerElement::create(Document& document) |
75 { | 74 { |
76 return adoptRef(new SVGMarkerElement(document)); | 75 return adoptRef(new SVGMarkerElement(document)); |
77 } | 76 } |
78 | 77 |
79 AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float viewHeight) const | 78 AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float viewHeight) const |
80 { | 79 { |
81 return SVGFitToViewBox::viewBoxToViewTransform(viewBox()->currentValue()->va lue(), preserveAspectRatio()->currentValue(), viewWidth, viewHeight); | 80 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 | 174 |
176 bool SVGMarkerElement::selfHasRelativeLengths() const | 175 bool SVGMarkerElement::selfHasRelativeLengths() const |
177 { | 176 { |
178 return m_refX->currentValue()->isRelative() | 177 return m_refX->currentValue()->isRelative() |
179 || m_refY->currentValue()->isRelative() | 178 || m_refY->currentValue()->isRelative() |
180 || m_markerWidth->currentValue()->isRelative() | 179 || m_markerWidth->currentValue()->isRelative() |
181 || m_markerHeight->currentValue()->isRelative(); | 180 || m_markerHeight->currentValue()->isRelative(); |
182 } | 181 } |
183 | 182 |
184 } | 183 } |
OLD | NEW |