| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 { | 47 { |
| 48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 49 | 49 |
| 50 // Spec: If the x2 attribute is not specified, the effect is as if a value o
f "100%" were specified. | 50 // Spec: If the x2 attribute is not specified, the effect is as if a value o
f "100%" were specified. |
| 51 m_x2->setDefaultValueAsString("100%"); | 51 m_x2->setDefaultValueAsString("100%"); |
| 52 | 52 |
| 53 addToPropertyMap(m_x1); | 53 addToPropertyMap(m_x1); |
| 54 addToPropertyMap(m_y1); | 54 addToPropertyMap(m_y1); |
| 55 addToPropertyMap(m_x2); | 55 addToPropertyMap(m_x2); |
| 56 addToPropertyMap(m_y2); | 56 addToPropertyMap(m_y2); |
| 57 registerAnimatedPropertiesForSVGLinearGradientElement(); | |
| 58 } | 57 } |
| 59 | 58 |
| 60 PassRefPtr<SVGLinearGradientElement> SVGLinearGradientElement::create(Document&
document) | 59 PassRefPtr<SVGLinearGradientElement> SVGLinearGradientElement::create(Document&
document) |
| 61 { | 60 { |
| 62 return adoptRef(new SVGLinearGradientElement(document)); | 61 return adoptRef(new SVGLinearGradientElement(document)); |
| 63 } | 62 } |
| 64 | 63 |
| 65 bool SVGLinearGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) | 64 bool SVGLinearGradientElement::isSupportedAttribute(const QualifiedName& attrNam
e) |
| 66 { | 65 { |
| 67 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 188 |
| 190 bool SVGLinearGradientElement::selfHasRelativeLengths() const | 189 bool SVGLinearGradientElement::selfHasRelativeLengths() const |
| 191 { | 190 { |
| 192 return m_x1->currentValue()->isRelative() | 191 return m_x1->currentValue()->isRelative() |
| 193 || m_y1->currentValue()->isRelative() | 192 || m_y1->currentValue()->isRelative() |
| 194 || m_x2->currentValue()->isRelative() | 193 || m_x2->currentValue()->isRelative() |
| 195 || m_y2->currentValue()->isRelative(); | 194 || m_y2->currentValue()->isRelative(); |
| 196 } | 195 } |
| 197 | 196 |
| 198 } | 197 } |
| OLD | NEW |