| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) | 646 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) |
| 647 { | 647 { |
| 648 ensureSVGRareData()->setCorrespondingElement(correspondingElement); | 648 ensureSVGRareData()->setCorrespondingElement(correspondingElement); |
| 649 } | 649 } |
| 650 | 650 |
| 651 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
alue) | 651 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
alue) |
| 652 { | 652 { |
| 653 // standard events | 653 // standard events |
| 654 if (name == onloadAttr) | 654 if (name == onloadAttr) |
| 655 setAttributeEventListener(EventTypeNames::load, createAttributeEventList
ener(this, name, value)); | 655 setAttributeEventListener(EventTypeNames::load, createAttributeEventList
ener(this, name, value)); |
| 656 else if (name == onbeginAttr) | |
| 657 setAttributeEventListener(EventTypeNames::beginEvent, createAttributeEve
ntListener(this, name, value)); | |
| 658 else if (name == onendAttr) | |
| 659 setAttributeEventListener(EventTypeNames::endEvent, createAttributeEvent
Listener(this, name, value)); | |
| 660 else if (name == onrepeatAttr) | |
| 661 setAttributeEventListener(EventTypeNames::repeatEvent, createAttributeEv
entListener(this, name, value)); | |
| 662 else if (name == onclickAttr) | 656 else if (name == onclickAttr) |
| 663 setAttributeEventListener(EventTypeNames::click, createAttributeEventLis
tener(this, name, value)); | 657 setAttributeEventListener(EventTypeNames::click, createAttributeEventLis
tener(this, name, value)); |
| 664 else if (name == onmousedownAttr) | 658 else if (name == onmousedownAttr) |
| 665 setAttributeEventListener(EventTypeNames::mousedown, createAttributeEven
tListener(this, name, value)); | 659 setAttributeEventListener(EventTypeNames::mousedown, createAttributeEven
tListener(this, name, value)); |
| 666 else if (name == onmouseenterAttr) | 660 else if (name == onmouseenterAttr) |
| 667 setAttributeEventListener(EventTypeNames::mouseenter, createAttributeEve
ntListener(this, name, value)); | 661 setAttributeEventListener(EventTypeNames::mouseenter, createAttributeEve
ntListener(this, name, value)); |
| 668 else if (name == onmouseleaveAttr) | 662 else if (name == onmouseleaveAttr) |
| 669 setAttributeEventListener(EventTypeNames::mouseleave, createAttributeEve
ntListener(this, name, value)); | 663 setAttributeEventListener(EventTypeNames::mouseleave, createAttributeEve
ntListener(this, name, value)); |
| 670 else if (name == onmousemoveAttr) | 664 else if (name == onmousemoveAttr) |
| 671 setAttributeEventListener(EventTypeNames::mousemove, createAttributeEven
tListener(this, name, value)); | 665 setAttributeEventListener(EventTypeNames::mousemove, createAttributeEven
tListener(this, name, value)); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 } | 1201 } |
| 1208 | 1202 |
| 1209 if (name == classAttr) | 1203 if (name == classAttr) |
| 1210 return true; | 1204 return true; |
| 1211 | 1205 |
| 1212 return animatableAttributes.contains(name); | 1206 return animatableAttributes.contains(name); |
| 1213 } | 1207 } |
| 1214 #endif | 1208 #endif |
| 1215 | 1209 |
| 1216 } | 1210 } |
| OLD | NEW |