| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 DEFINE_NODE_FACTORY(SVGLinearGradientElement) | 64 DEFINE_NODE_FACTORY(SVGLinearGradientElement) |
| 65 | 65 |
| 66 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName
) | 66 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName
) |
| 67 { | 67 { |
| 68 if (attrName == SVGNames::x1Attr || attrName == SVGNames::x2Attr | 68 if (attrName == SVGNames::x1Attr || attrName == SVGNames::x2Attr |
| 69 || attrName == SVGNames::y1Attr || attrName == SVGNames::y2Attr) { | 69 || attrName == SVGNames::y1Attr || attrName == SVGNames::y2Attr) { |
| 70 SVGElement::InvalidationGuard invalidationGuard(this); | 70 SVGElement::InvalidationGuard invalidationGuard(this); |
| 71 | 71 |
| 72 updateRelativeLengthsInformation(); | 72 updateRelativeLengthsInformation(); |
| 73 | 73 |
| 74 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this
->layoutObject()); | 74 LayoutSVGResourceContainer* layoutObject = toLayoutSVGResourceContainer(
this->layoutObject()); |
| 75 if (renderer) | 75 if (layoutObject) |
| 76 renderer->invalidateCacheAndMarkForLayout(); | 76 layoutObject->invalidateCacheAndMarkForLayout(); |
| 77 | 77 |
| 78 return; | 78 return; |
| 79 } | 79 } |
| 80 | 80 |
| 81 SVGGradientElement::svgAttributeChanged(attrName); | 81 SVGGradientElement::svgAttributeChanged(attrName); |
| 82 } | 82 } |
| 83 | 83 |
| 84 LayoutObject* SVGLinearGradientElement::createLayoutObject(const ComputedStyle&) | 84 LayoutObject* SVGLinearGradientElement::createLayoutObject(const ComputedStyle&) |
| 85 { | 85 { |
| 86 return new LayoutSVGResourceLinearGradient(this); | 86 return new LayoutSVGResourceLinearGradient(this); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 bool SVGLinearGradientElement::selfHasRelativeLengths() const | 161 bool SVGLinearGradientElement::selfHasRelativeLengths() const |
| 162 { | 162 { |
| 163 return m_x1->currentValue()->isRelative() | 163 return m_x1->currentValue()->isRelative() |
| 164 || m_y1->currentValue()->isRelative() | 164 || m_y1->currentValue()->isRelative() |
| 165 || m_x2->currentValue()->isRelative() | 165 || m_x2->currentValue()->isRelative() |
| 166 || m_y2->currentValue()->isRelative(); | 166 || m_y2->currentValue()->isRelative(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |