| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" | 28 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" |
| 29 #include "core/svg/LinearGradientAttributes.h" | 29 #include "core/svg/LinearGradientAttributes.h" |
| 30 #include "core/svg/SVGElementInstance.h" | 30 #include "core/svg/SVGElementInstance.h" |
| 31 #include "core/svg/SVGLength.h" | 31 #include "core/svg/SVGLength.h" |
| 32 #include "core/svg/SVGTransformList.h" | 32 #include "core/svg/SVGTransformList.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 | 35 |
| 36 // Animated property definitions | 36 // Animated property definitions |
| 37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGLinearGradientElement) | |
| 38 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGradientElement) | |
| 39 END_REGISTER_ANIMATED_PROPERTIES | |
| 40 | 37 |
| 41 inline SVGLinearGradientElement::SVGLinearGradientElement(Document& document) | 38 inline SVGLinearGradientElement::SVGLinearGradientElement(Document& document) |
| 42 : SVGGradientElement(SVGNames::linearGradientTag, document) | 39 : SVGGradientElement(SVGNames::linearGradientTag, document) |
| 43 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L
engthModeWidth))) | 40 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L
engthModeWidth))) |
| 44 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L
engthModeHeight))) | 41 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L
engthModeHeight))) |
| 45 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L
engthModeWidth))) | 42 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L
engthModeWidth))) |
| 46 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L
engthModeHeight))) | 43 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L
engthModeHeight))) |
| 47 { | 44 { |
| 48 ScriptWrappable::init(this); | 45 ScriptWrappable::init(this); |
| 49 | 46 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 185 |
| 189 bool SVGLinearGradientElement::selfHasRelativeLengths() const | 186 bool SVGLinearGradientElement::selfHasRelativeLengths() const |
| 190 { | 187 { |
| 191 return m_x1->currentValue()->isRelative() | 188 return m_x1->currentValue()->isRelative() |
| 192 || m_y1->currentValue()->isRelative() | 189 || m_y1->currentValue()->isRelative() |
| 193 || m_x2->currentValue()->isRelative() | 190 || m_x2->currentValue()->isRelative() |
| 194 || m_y2->currentValue()->isRelative(); | 191 || m_y2->currentValue()->isRelative(); |
| 195 } | 192 } |
| 196 | 193 |
| 197 } | 194 } |
| OLD | NEW |