OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 void SVGForeignObjectElement::svgAttributeChanged(const QualifiedName& attrName) | 93 void SVGForeignObjectElement::svgAttributeChanged(const QualifiedName& attrName) |
94 { | 94 { |
95 if (!isSupportedAttribute(attrName)) { | 95 if (!isSupportedAttribute(attrName)) { |
96 SVGGraphicsElement::svgAttributeChanged(attrName); | 96 SVGGraphicsElement::svgAttributeChanged(attrName); |
97 return; | 97 return; |
98 } | 98 } |
99 | 99 |
100 if (attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr) { | 100 if (attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr) { |
101 invalidateSVGPresentationAttributeStyle(); | 101 invalidateSVGPresentationAttributeStyle(); |
102 setNeedsStyleRecalc(LocalStyleChange); | 102 setNeedsStyleRecalc(StyleRecalcDueToSVGContainerSizeChange, LocalStyleCh
ange); |
103 } | 103 } |
104 | 104 |
105 SVGElement::InvalidationGuard invalidationGuard(this); | 105 SVGElement::InvalidationGuard invalidationGuard(this); |
106 | 106 |
107 bool isLengthAttribute = attrName == SVGNames::xAttr | 107 bool isLengthAttribute = attrName == SVGNames::xAttr |
108 || attrName == SVGNames::yAttr | 108 || attrName == SVGNames::yAttr |
109 || attrName == SVGNames::widthAttr | 109 || attrName == SVGNames::widthAttr |
110 || attrName == SVGNames::heightAttr; | 110 || attrName == SVGNames::heightAttr; |
111 | 111 |
112 if (isLengthAttribute) | 112 if (isLengthAttribute) |
(...skipping 28 matching lines...) Expand all Loading... |
141 | 141 |
142 bool SVGForeignObjectElement::selfHasRelativeLengths() const | 142 bool SVGForeignObjectElement::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 |