| 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 { | 722 { |
| 723 ASSERT(element); | 723 ASSERT(element); |
| 724 if (element->containingShadowRoot()) | 724 if (element->containingShadowRoot()) |
| 725 return; | 725 return; |
| 726 | 726 |
| 727 ASSERT(!element->instanceUpdatesBlocked()); | 727 ASSERT(!element->instanceUpdatesBlocked()); |
| 728 | 728 |
| 729 instances = element->instancesForElement(); | 729 instances = element->instancesForElement(); |
| 730 } | 730 } |
| 731 | 731 |
| 732 bool SVGElement::addEventListenerInternal(const AtomicString& eventType, EventLi
stener* listener, const EventListenerOptions& options) | 732 bool SVGElement::addEventListenerInternal(const AtomicString& eventType, EventLi
stener* listener, const AddEventListenerOptions& options) |
| 733 { | 733 { |
| 734 // Add event listener to regular DOM element | 734 // Add event listener to regular DOM element |
| 735 if (!Node::addEventListenerInternal(eventType, listener, options)) | 735 if (!Node::addEventListenerInternal(eventType, listener, options)) |
| 736 return false; | 736 return false; |
| 737 | 737 |
| 738 // Add event listener to all shadow tree DOM element instances | 738 // Add event listener to all shadow tree DOM element instances |
| 739 HeapHashSet<WeakMember<SVGElement>> instances; | 739 HeapHashSet<WeakMember<SVGElement>> instances; |
| 740 collectInstancesForSVGElement(this, instances); | 740 collectInstancesForSVGElement(this, instances); |
| 741 for (SVGElement* element : instances) { | 741 for (SVGElement* element : instances) { |
| 742 bool result = element->Node::addEventListenerInternal(eventType, listene
r, options); | 742 bool result = element->Node::addEventListenerInternal(eventType, listene
r, options); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 Element::trace(visitor); | 1176 Element::trace(visitor); |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 const AtomicString& SVGElement::eventParameterName() | 1179 const AtomicString& SVGElement::eventParameterName() |
| 1180 { | 1180 { |
| 1181 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1181 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
| 1182 return evtString; | 1182 return evtString; |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 } // namespace blink | 1185 } // namespace blink |
| OLD | NEW |