| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 : SVGGradientElement(tagName, document) | 62 : SVGGradientElement(tagName, document) |
| 63 , m_cx(LengthModeWidth, "50%") | 63 , m_cx(LengthModeWidth, "50%") |
| 64 , m_cy(LengthModeHeight, "50%") | 64 , m_cy(LengthModeHeight, "50%") |
| 65 , m_r(LengthModeOther, "50%") | 65 , m_r(LengthModeOther, "50%") |
| 66 , m_fx(LengthModeWidth) | 66 , m_fx(LengthModeWidth) |
| 67 , m_fy(LengthModeHeight) | 67 , m_fy(LengthModeHeight) |
| 68 , m_fr(LengthModeOther, "0%") | 68 , m_fr(LengthModeOther, "0%") |
| 69 { | 69 { |
| 70 // Spec: If the cx/cy/r/fr attribute is not specified, the effect is as if a
value of "50%" were specified. | 70 // Spec: If the cx/cy/r/fr attribute is not specified, the effect is as if a
value of "50%" were specified. |
| 71 ASSERT(hasTagName(SVGNames::radialGradientTag)); | 71 ASSERT(hasTagName(SVGNames::radialGradientTag)); |
| 72 ScriptWrappable::init(this); |
| 72 registerAnimatedPropertiesForSVGRadialGradientElement(); | 73 registerAnimatedPropertiesForSVGRadialGradientElement(); |
| 73 } | 74 } |
| 74 | 75 |
| 75 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(const Qual
ifiedName& tagName, Document* document) | 76 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(const Qual
ifiedName& tagName, Document* document) |
| 76 { | 77 { |
| 77 return adoptRef(new SVGRadialGradientElement(tagName, document)); | 78 return adoptRef(new SVGRadialGradientElement(tagName, document)); |
| 78 } | 79 } |
| 79 | 80 |
| 80 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) | 81 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) |
| 81 { | 82 { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 || cy().isRelative() | 220 || cy().isRelative() |
| 220 || r().isRelative() | 221 || r().isRelative() |
| 221 || fx().isRelative() | 222 || fx().isRelative() |
| 222 || fy().isRelative() | 223 || fy().isRelative() |
| 223 || fr().isRelative(); | 224 || fr().isRelative(); |
| 224 } | 225 } |
| 225 | 226 |
| 226 } | 227 } |
| 227 | 228 |
| 228 #endif // ENABLE(SVG) | 229 #endif // ENABLE(SVG) |
| OLD | NEW |