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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 { | 164 { |
165 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange
, childCountDelta); | 165 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange
, childCountDelta); |
166 | 166 |
167 if (changedByParser) | 167 if (changedByParser) |
168 return; | 168 return; |
169 | 169 |
170 if (RenderObject* object = renderer()) | 170 if (RenderObject* object = renderer()) |
171 object->setNeedsLayout(true); | 171 object->setNeedsLayout(true); |
172 } | 172 } |
173 | 173 |
174 RenderObject* SVGPatternElement::createRenderer(RenderArena* arena, RenderStyle*
) | 174 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) |
175 { | 175 { |
176 return new (arena) RenderSVGResourcePattern(this); | 176 return new RenderSVGResourcePattern(this); |
177 } | 177 } |
178 | 178 |
179 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes)
const | 179 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes)
const |
180 { | 180 { |
181 HashSet<const SVGPatternElement*> processedPatterns; | 181 HashSet<const SVGPatternElement*> processedPatterns; |
182 | 182 |
183 const SVGPatternElement* current = this; | 183 const SVGPatternElement* current = this; |
184 while (current) { | 184 while (current) { |
185 if (!attributes.hasX() && current->hasAttribute(SVGNames::xAttr)) | 185 if (!attributes.hasX() && current->hasAttribute(SVGNames::xAttr)) |
186 attributes.setX(current->x()); | 186 attributes.setX(current->x()); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 bool SVGPatternElement::selfHasRelativeLengths() const | 242 bool SVGPatternElement::selfHasRelativeLengths() const |
243 { | 243 { |
244 return x().isRelative() | 244 return x().isRelative() |
245 || y().isRelative() | 245 || y().isRelative() |
246 || width().isRelative() | 246 || width().isRelative() |
247 || height().isRelative(); | 247 || height().isRelative(); |
248 } | 248 } |
249 | 249 |
250 } | 250 } |
OLD | NEW |