| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 || SVGTests::isKnownAttribute(attrName)) { | 113 || SVGTests::isKnownAttribute(attrName)) { |
| 114 SVGElement::InvalidationGuard invalidationGuard(this); | 114 SVGElement::InvalidationGuard invalidationGuard(this); |
| 115 | 115 |
| 116 if (isLengthAttr) { | 116 if (isLengthAttr) { |
| 117 invalidateSVGPresentationAttributeStyle(); | 117 invalidateSVGPresentationAttributeStyle(); |
| 118 setNeedsStyleRecalc(LocalStyleChange, | 118 setNeedsStyleRecalc(LocalStyleChange, |
| 119 StyleChangeReasonForTracing::fromAttribute(attrName)); | 119 StyleChangeReasonForTracing::fromAttribute(attrName)); |
| 120 updateRelativeLengthsInformation(); | 120 updateRelativeLengthsInformation(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this
->layoutObject()); | 123 LayoutSVGResourceContainer* layoutObject = toLayoutSVGResourceContainer(
this->layoutObject()); |
| 124 if (renderer) | 124 if (layoutObject) |
| 125 renderer->invalidateCacheAndMarkForLayout(); | 125 layoutObject->invalidateCacheAndMarkForLayout(); |
| 126 | 126 |
| 127 return; | 127 return; |
| 128 } | 128 } |
| 129 | 129 |
| 130 SVGElement::svgAttributeChanged(attrName); | 130 SVGElement::svgAttributeChanged(attrName); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void SVGMaskElement::childrenChanged(const ChildrenChange& change) | 133 void SVGMaskElement::childrenChanged(const ChildrenChange& change) |
| 134 { | 134 { |
| 135 SVGElement::childrenChanged(change); | 135 SVGElement::childrenChanged(change); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 148 | 148 |
| 149 bool SVGMaskElement::selfHasRelativeLengths() const | 149 bool SVGMaskElement::selfHasRelativeLengths() const |
| 150 { | 150 { |
| 151 return m_x->currentValue()->isRelative() | 151 return m_x->currentValue()->isRelative() |
| 152 || m_y->currentValue()->isRelative() | 152 || m_y->currentValue()->isRelative() |
| 153 || m_width->currentValue()->isRelative() | 153 || m_width->currentValue()->isRelative() |
| 154 || m_height->currentValue()->isRelative(); | 154 || m_height->currentValue()->isRelative(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace blink | 157 } // namespace blink |
| OLD | NEW |