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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 441 |
442 data->eventListenerMap.removeFirstEventListenerCreatedFromMarkup(eventTy
pe); | 442 data->eventListenerMap.removeFirstEventListenerCreatedFromMarkup(eventTy
pe); |
443 } | 443 } |
444 | 444 |
445 return true; | 445 return true; |
446 } | 446 } |
447 | 447 |
448 void SVGElement::trace(Visitor* visitor) | 448 void SVGElement::trace(Visitor* visitor) |
449 { | 449 { |
450 StyledElement::trace(visitor); | 450 StyledElement::trace(visitor); |
451 // SVGElementRareData is visited through SVGElementRareData::rareDataMap() w
hich is a GC root. | 451 // SVGElementRareData is traced through SVGElementRareData::rareDataMap() wh
ich is a GC root. |
452 } | 452 } |
453 | 453 |
454 static bool hasLoadListener(Element* element) | 454 static bool hasLoadListener(Element* element) |
455 { | 455 { |
456 if (element->hasEventListeners(eventNames().loadEvent)) | 456 if (element->hasEventListeners(eventNames().loadEvent)) |
457 return true; | 457 return true; |
458 | 458 |
459 Element* current = element; | 459 Element* current = element; |
460 for (current = current->parentOrShadowHostElement(); current; current = curr
ent->parentOrShadowHostElement()) { | 460 for (current = current->parentOrShadowHostElement(); current; current = curr
ent->parentOrShadowHostElement()) { |
461 const EventListenerVector& entry = current->getEventListeners(eventNames
().loadEvent); | 461 const EventListenerVector& entry = current->getEventListeners(eventNames
().loadEvent); |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 if (name == classAttr) | 746 if (name == classAttr) |
747 return isSVGStyledElement(); | 747 return isSVGStyledElement(); |
748 | 748 |
749 return animatableAttributes.contains(name); | 749 return animatableAttributes.contains(name); |
750 } | 750 } |
751 #endif | 751 #endif |
752 | 752 |
753 } | 753 } |
754 | 754 |
755 #endif // ENABLE(SVG) | 755 #endif // ENABLE(SVG) |
OLD | NEW |