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, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 StyledElement::insertedIntoDocument(); | 280 StyledElement::insertedIntoDocument(); |
281 | 281 |
282 if (!needsPendingResourceHandling()) | 282 if (!needsPendingResourceHandling()) |
283 return; | 283 return; |
284 | 284 |
285 SVGDocumentExtensions* extensions = document()->accessSVGExtensions(); | 285 SVGDocumentExtensions* extensions = document()->accessSVGExtensions(); |
286 String resourceId = getIdAttribute(); | 286 String resourceId = getIdAttribute(); |
287 if (!extensions->isPendingResource(resourceId)) | 287 if (!extensions->isPendingResource(resourceId)) |
288 return; | 288 return; |
289 | 289 |
290 OwnPtr<HashSet<SVGStyledElement*> > clients(extensions->removePendingResourc
e(resourceId)); | 290 OwnPtr<SVGDocumentExtensions::SVGPendingElements> clients(extensions->remove
PendingResource(resourceId)); |
291 if (clients->isEmpty()) | 291 if (clients->isEmpty()) |
292 return; | 292 return; |
293 | 293 |
294 const HashSet<SVGStyledElement*>::const_iterator end = clients->end(); | 294 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); |
295 for (HashSet<SVGStyledElement*>::const_iterator it = clients->begin(); it !=
end; ++it) | 295 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) |
296 (*it)->buildPendingResource(); | 296 (*it)->buildPendingResource(); |
297 } | 297 } |
298 | 298 |
299 void SVGElement::attributeChanged(Attribute* attr, bool preserveDecls) | 299 void SVGElement::attributeChanged(Attribute* attr, bool preserveDecls) |
300 { | 300 { |
301 ASSERT(attr); | 301 ASSERT(attr); |
302 if (!attr) | 302 if (!attr) |
303 return; | 303 return; |
304 | 304 |
305 StyledElement::attributeChanged(attr, preserveDecls); | 305 StyledElement::attributeChanged(attr, preserveDecls); |
(...skipping 29 matching lines...) Expand all Loading... |
335 ContainerNode* SVGElement::eventParentNode() | 335 ContainerNode* SVGElement::eventParentNode() |
336 { | 336 { |
337 if (ContainerNode* shadowParent = shadowParentNode()) | 337 if (ContainerNode* shadowParent = shadowParentNode()) |
338 return shadowParent; | 338 return shadowParent; |
339 return StyledElement::eventParentNode(); | 339 return StyledElement::eventParentNode(); |
340 } | 340 } |
341 | 341 |
342 } | 342 } |
343 | 343 |
344 #endif // ENABLE(SVG) | 344 #endif // ENABLE(SVG) |
OLD | NEW |