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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 } | 125 } |
126 | 126 |
127 void SVGPatternElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 127 void SVGPatternElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) |
128 { | 128 { |
129 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 129 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
130 | 130 |
131 if (changedByParser) | 131 if (changedByParser) |
132 return; | 132 return; |
133 | 133 |
134 if (RenderObject* object = renderer()) | 134 if (RenderObject* object = renderer()) |
135 object->setNeedsLayout(); | 135 object->setNeedsLayoutAndFullRepaint(); |
136 } | 136 } |
137 | 137 |
138 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) | 138 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) |
139 { | 139 { |
140 return new RenderSVGResourcePattern(this); | 140 return new RenderSVGResourcePattern(this); |
141 } | 141 } |
142 | 142 |
143 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) | 143 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) |
144 { | 144 { |
145 if (!attributes.hasX() && element->x()->isSpecified()) | 145 if (!attributes.hasX() && element->x()->isSpecified()) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 bool SVGPatternElement::selfHasRelativeLengths() const | 211 bool SVGPatternElement::selfHasRelativeLengths() const |
212 { | 212 { |
213 return m_x->currentValue()->isRelative() | 213 return m_x->currentValue()->isRelative() |
214 || m_y->currentValue()->isRelative() | 214 || m_y->currentValue()->isRelative() |
215 || m_width->currentValue()->isRelative() | 215 || m_width->currentValue()->isRelative() |
216 || m_height->currentValue()->isRelative(); | 216 || m_height->currentValue()->isRelative(); |
217 } | 217 } |
218 | 218 |
219 } | 219 } |
OLD | NEW |