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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 || attrName == SVGNames::yAttr | 118 || attrName == SVGNames::yAttr |
119 || attrName == SVGNames::widthAttr | 119 || attrName == SVGNames::widthAttr |
120 || attrName == SVGNames::heightAttr) | 120 || attrName == SVGNames::heightAttr) |
121 updateRelativeLengthsInformation(); | 121 updateRelativeLengthsInformation(); |
122 | 122 |
123 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 123 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
124 if (renderer) | 124 if (renderer) |
125 renderer->invalidateCacheAndMarkForLayout(); | 125 renderer->invalidateCacheAndMarkForLayout(); |
126 } | 126 } |
127 | 127 |
128 void SVGPatternElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 128 void SVGPatternElement::childrenChanged(const ChildrenChange& change) |
129 { | 129 { |
130 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 130 SVGElement::childrenChanged(change); |
131 | 131 |
132 if (changedByParser) | 132 if (change.byParser) |
133 return; | 133 return; |
134 | 134 |
135 if (RenderObject* object = renderer()) | 135 if (RenderObject* object = renderer()) |
136 object->setNeedsLayoutAndFullPaintInvalidation(); | 136 object->setNeedsLayoutAndFullPaintInvalidation(); |
137 } | 137 } |
138 | 138 |
139 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) | 139 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) |
140 { | 140 { |
141 return new RenderSVGResourcePattern(this); | 141 return new RenderSVGResourcePattern(this); |
142 } | 142 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 bool SVGPatternElement::selfHasRelativeLengths() const | 212 bool SVGPatternElement::selfHasRelativeLengths() const |
213 { | 213 { |
214 return m_x->currentValue()->isRelative() | 214 return m_x->currentValue()->isRelative() |
215 || m_y->currentValue()->isRelative() | 215 || m_y->currentValue()->isRelative() |
216 || m_width->currentValue()->isRelative() | 216 || m_width->currentValue()->isRelative() |
217 || m_height->currentValue()->isRelative(); | 217 || m_height->currentValue()->isRelative(); |
218 } | 218 } |
219 | 219 |
220 } | 220 } |
OLD | NEW |