| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 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) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 || attrName == SVGNames::patternContentUnitsAttr | 81 || attrName == SVGNames::patternContentUnitsAttr |
| 82 || attrName == SVGNames::patternTransformAttr | 82 || attrName == SVGNames::patternTransformAttr |
| 83 || SVGFitToViewBox::isKnownAttribute(attrName) | 83 || SVGFitToViewBox::isKnownAttribute(attrName) |
| 84 || SVGURIReference::isKnownAttribute(attrName) | 84 || SVGURIReference::isKnownAttribute(attrName) |
| 85 || SVGTests::isKnownAttribute(attrName)) { | 85 || SVGTests::isKnownAttribute(attrName)) { |
| 86 SVGElement::InvalidationGuard invalidationGuard(this); | 86 SVGElement::InvalidationGuard invalidationGuard(this); |
| 87 | 87 |
| 88 if (isLengthAttr) | 88 if (isLengthAttr) |
| 89 updateRelativeLengthsInformation(); | 89 updateRelativeLengthsInformation(); |
| 90 | 90 |
| 91 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this
->layoutObject()); | 91 LayoutSVGResourceContainer* layoutObject = toLayoutSVGResourceContainer(
this->layoutObject()); |
| 92 if (renderer) | 92 if (layoutObject) |
| 93 renderer->invalidateCacheAndMarkForLayout(); | 93 layoutObject->invalidateCacheAndMarkForLayout(); |
| 94 | 94 |
| 95 return; | 95 return; |
| 96 } | 96 } |
| 97 | 97 |
| 98 SVGElement::svgAttributeChanged(attrName); | 98 SVGElement::svgAttributeChanged(attrName); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void SVGPatternElement::childrenChanged(const ChildrenChange& change) | 101 void SVGPatternElement::childrenChanged(const ChildrenChange& change) |
| 102 { | 102 { |
| 103 SVGElement::childrenChanged(change); | 103 SVGElement::childrenChanged(change); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 bool SVGPatternElement::selfHasRelativeLengths() const | 184 bool SVGPatternElement::selfHasRelativeLengths() const |
| 185 { | 185 { |
| 186 return m_x->currentValue()->isRelative() | 186 return m_x->currentValue()->isRelative() |
| 187 || m_y->currentValue()->isRelative() | 187 || m_y->currentValue()->isRelative() |
| 188 || m_width->currentValue()->isRelative() | 188 || m_width->currentValue()->isRelative() |
| 189 || m_height->currentValue()->isRelative(); | 189 || m_height->currentValue()->isRelative(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace blink | 192 } // namespace blink |
| OLD | NEW |