| 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) 2005 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> |
| 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009-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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 reportAttributeParsingError(parseError, name, value); | 103 reportAttributeParsingError(parseError, name, value); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void SVGMaskElement::svgAttributeChanged(const QualifiedName& attrName) | 106 void SVGMaskElement::svgAttributeChanged(const QualifiedName& attrName) |
| 107 { | 107 { |
| 108 if (!isSupportedAttribute(attrName)) { | 108 if (!isSupportedAttribute(attrName)) { |
| 109 SVGElement::svgAttributeChanged(attrName); | 109 SVGElement::svgAttributeChanged(attrName); |
| 110 return; | 110 return; |
| 111 } | 111 } |
| 112 | 112 |
| 113 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 113 SVGElement::InvalidationGuard invalidationGuard(this); |
| 114 | 114 |
| 115 if (attrName == SVGNames::xAttr | 115 if (attrName == SVGNames::xAttr |
| 116 || attrName == SVGNames::yAttr | 116 || attrName == SVGNames::yAttr |
| 117 || attrName == SVGNames::widthAttr | 117 || attrName == SVGNames::widthAttr |
| 118 || attrName == SVGNames::heightAttr) | 118 || attrName == SVGNames::heightAttr) |
| 119 updateRelativeLengthsInformation(); | 119 updateRelativeLengthsInformation(); |
| 120 | 120 |
| 121 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 121 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
| 122 if (renderer) | 122 if (renderer) |
| 123 renderer->invalidateCacheAndMarkForLayout(); | 123 renderer->invalidateCacheAndMarkForLayout(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 141 | 141 |
| 142 bool SVGMaskElement::selfHasRelativeLengths() const | 142 bool SVGMaskElement::selfHasRelativeLengths() const |
| 143 { | 143 { |
| 144 return m_x->currentValue()->isRelative() | 144 return m_x->currentValue()->isRelative() |
| 145 || m_y->currentValue()->isRelative() | 145 || m_y->currentValue()->isRelative() |
| 146 || m_width->currentValue()->isRelative() | 146 || m_width->currentValue()->isRelative() |
| 147 || m_height->currentValue()->isRelative(); | 147 || m_height->currentValue()->isRelative(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } | 150 } |
| OLD | NEW |