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 23 matching lines...) Expand all Loading... |
34 { | 34 { |
35 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); | 35 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); |
36 if (entries.isEmpty()) { | 36 if (entries.isEmpty()) { |
37 entries.append(std::make_pair(SVGMarkerUnitsUnknown, emptyString())); | 37 entries.append(std::make_pair(SVGMarkerUnitsUnknown, emptyString())); |
38 entries.append(std::make_pair(SVGMarkerUnitsUserSpaceOnUse, "userSpaceOn
Use")); | 38 entries.append(std::make_pair(SVGMarkerUnitsUserSpaceOnUse, "userSpaceOn
Use")); |
39 entries.append(std::make_pair(SVGMarkerUnitsStrokeWidth, "strokeWidth"))
; | 39 entries.append(std::make_pair(SVGMarkerUnitsStrokeWidth, "strokeWidth"))
; |
40 } | 40 } |
41 return entries; | 41 return entries; |
42 } | 42 } |
43 | 43 |
44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMarkerElement) | |
45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | |
46 END_REGISTER_ANIMATED_PROPERTIES | |
47 | 44 |
48 inline SVGMarkerElement::SVGMarkerElement(Document& document) | 45 inline SVGMarkerElement::SVGMarkerElement(Document& document) |
49 : SVGElement(SVGNames::markerTag, document) | 46 : SVGElement(SVGNames::markerTag, document) |
50 , SVGFitToViewBox(this) | 47 , SVGFitToViewBox(this) |
51 , m_refX(SVGAnimatedLength::create(this, SVGNames::refXAttr, SVGLength::crea
te(LengthModeWidth))) | 48 , m_refX(SVGAnimatedLength::create(this, SVGNames::refXAttr, SVGLength::crea
te(LengthModeWidth))) |
52 , m_refY(SVGAnimatedLength::create(this, SVGNames::refXAttr, SVGLength::crea
te(LengthModeWidth))) | 49 , m_refY(SVGAnimatedLength::create(this, SVGNames::refXAttr, SVGLength::crea
te(LengthModeWidth))) |
53 , m_markerWidth(SVGAnimatedLength::create(this, SVGNames::markerWidthAttr, S
VGLength::create(LengthModeWidth))) | 50 , m_markerWidth(SVGAnimatedLength::create(this, SVGNames::markerWidthAttr, S
VGLength::create(LengthModeWidth))) |
54 , m_markerHeight(SVGAnimatedLength::create(this, SVGNames::markerHeightAttr,
SVGLength::create(LengthModeHeight))) | 51 , m_markerHeight(SVGAnimatedLength::create(this, SVGNames::markerHeightAttr,
SVGLength::create(LengthModeHeight))) |
55 , m_orientAngle(SVGAnimatedAngle::create(this)) | 52 , m_orientAngle(SVGAnimatedAngle::create(this)) |
56 , m_markerUnits(SVGAnimatedEnumeration<SVGMarkerUnitsType>::create(this, SVG
Names::markerUnitsAttr, SVGMarkerUnitsStrokeWidth)) | 53 , m_markerUnits(SVGAnimatedEnumeration<SVGMarkerUnitsType>::create(this, SVG
Names::markerUnitsAttr, SVGMarkerUnitsStrokeWidth)) |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 170 |
174 bool SVGMarkerElement::selfHasRelativeLengths() const | 171 bool SVGMarkerElement::selfHasRelativeLengths() const |
175 { | 172 { |
176 return m_refX->currentValue()->isRelative() | 173 return m_refX->currentValue()->isRelative() |
177 || m_refY->currentValue()->isRelative() | 174 || m_refY->currentValue()->isRelative() |
178 || m_markerWidth->currentValue()->isRelative() | 175 || m_markerWidth->currentValue()->isRelative() |
179 || m_markerHeight->currentValue()->isRelative(); | 176 || m_markerHeight->currentValue()->isRelative(); |
180 } | 177 } |
181 | 178 |
182 } | 179 } |
OLD | NEW |