OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 if (RenderSVGResourceMasker* masker = resources->masker()) | 178 if (RenderSVGResourceMasker* masker = resources->masker()) |
179 masker->removeClientFromCache(object); | 179 masker->removeClientFromCache(object); |
180 | 180 |
181 if (RenderSVGResourceClipper* clipper = resources->clipper()) | 181 if (RenderSVGResourceClipper* clipper = resources->clipper()) |
182 clipper->removeClientFromCache(object); | 182 clipper->removeClientFromCache(object); |
183 } | 183 } |
184 | 184 |
185 if (!object->node() || !object->node()->isSVGElement()) | 185 if (!object->node() || !object->node()->isSVGElement()) |
186 return; | 186 return; |
187 HashSet<SVGElement*>* dependencies = object->document().accessSVGExtensions(
)->setOfElementsReferencingTarget(toSVGElement(object->node())); | 187 HashSet<SVGElement*>* dependencies = object->document().accessSVGExtensions(
).setOfElementsReferencingTarget(toSVGElement(object->node())); |
188 if (!dependencies) | 188 if (!dependencies) |
189 return; | 189 return; |
190 HashSet<SVGElement*>::iterator end = dependencies->end(); | 190 HashSet<SVGElement*>::iterator end = dependencies->end(); |
191 for (HashSet<SVGElement*>::iterator it = dependencies->begin(); it != end; +
+it) { | 191 for (HashSet<SVGElement*>::iterator it = dependencies->begin(); it != end; +
+it) { |
192 if (RenderObject* renderer = (*it)->renderer()) | 192 if (RenderObject* renderer = (*it)->renderer()) |
193 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render
er, needsLayout); | 193 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render
er, needsLayout); |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 void RenderSVGResource::markForLayoutAndParentResourceInvalidation(RenderObject*
object, bool needsLayout) | 197 void RenderSVGResource::markForLayoutAndParentResourceInvalidation(RenderObject*
object, bool needsLayout) |
(...skipping 15 matching lines...) Expand all Loading... |
213 // This will process the rest of the ancestors. | 213 // This will process the rest of the ancestors. |
214 toRenderSVGResourceContainer(current)->removeAllClientsFromCache(); | 214 toRenderSVGResourceContainer(current)->removeAllClientsFromCache(); |
215 break; | 215 break; |
216 } | 216 } |
217 | 217 |
218 current = current->parent(); | 218 current = current->parent(); |
219 } | 219 } |
220 } | 220 } |
221 | 221 |
222 } | 222 } |
OLD | NEW |