OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // SVG2-Draft Spec: If the fr attributed is not specified, the effect is as
if a value of "0%" were specified. | 57 // SVG2-Draft Spec: If the fr attributed is not specified, the effect is as
if a value of "0%" were specified. |
58 m_fr->setDefaultValueAsString("0%"); | 58 m_fr->setDefaultValueAsString("0%"); |
59 | 59 |
60 addToPropertyMap(m_cx); | 60 addToPropertyMap(m_cx); |
61 addToPropertyMap(m_cy); | 61 addToPropertyMap(m_cy); |
62 addToPropertyMap(m_r); | 62 addToPropertyMap(m_r); |
63 addToPropertyMap(m_fx); | 63 addToPropertyMap(m_fx); |
64 addToPropertyMap(m_fy); | 64 addToPropertyMap(m_fy); |
65 addToPropertyMap(m_fr); | 65 addToPropertyMap(m_fr); |
66 registerAnimatedPropertiesForSVGRadialGradientElement(); | |
67 } | 66 } |
68 | 67 |
69 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(Document&
document) | 68 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(Document&
document) |
70 { | 69 { |
71 return adoptRef(new SVGRadialGradientElement(document)); | 70 return adoptRef(new SVGRadialGradientElement(document)); |
72 } | 71 } |
73 | 72 |
74 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) | 73 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) |
75 { | 74 { |
76 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 75 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 { | 217 { |
219 return m_cx->currentValue()->isRelative() | 218 return m_cx->currentValue()->isRelative() |
220 || m_cy->currentValue()->isRelative() | 219 || m_cy->currentValue()->isRelative() |
221 || m_r->currentValue()->isRelative() | 220 || m_r->currentValue()->isRelative() |
222 || m_fx->currentValue()->isRelative() | 221 || m_fx->currentValue()->isRelative() |
223 || m_fy->currentValue()->isRelative() | 222 || m_fy->currentValue()->isRelative() |
224 || m_fr->currentValue()->isRelative(); | 223 || m_fr->currentValue()->isRelative(); |
225 } | 224 } |
226 | 225 |
227 } | 226 } |
OLD | NEW |