| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) | 630 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) |
| 631 { | 631 { |
| 632 ensureSVGRareData()->setCorrespondingElement(correspondingElement); | 632 ensureSVGRareData()->setCorrespondingElement(correspondingElement); |
| 633 } | 633 } |
| 634 | 634 |
| 635 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
alue) | 635 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
alue) |
| 636 { | 636 { |
| 637 // standard events | 637 // standard events |
| 638 if (name == onloadAttr) | 638 if (name == onloadAttr) |
| 639 setAttributeEventListener(EventTypeNames::load, createAttributeEventList
ener(this, name, value)); | 639 setAttributeEventListener(EventTypeNames::load, createAttributeEventList
ener(this, name, value)); |
| 640 else if (name == onbeginAttr) |
| 641 setAttributeEventListener(EventTypeNames::beginEvent, createAttributeEve
ntListener(this, name, value)); |
| 642 else if (name == onendAttr) |
| 643 setAttributeEventListener(EventTypeNames::endEvent, createAttributeEvent
Listener(this, name, value)); |
| 644 else if (name == onrepeatAttr) |
| 645 setAttributeEventListener(EventTypeNames::repeatEvent, createAttributeEv
entListener(this, name, value)); |
| 640 else if (name == onclickAttr) | 646 else if (name == onclickAttr) |
| 641 setAttributeEventListener(EventTypeNames::click, createAttributeEventLis
tener(this, name, value)); | 647 setAttributeEventListener(EventTypeNames::click, createAttributeEventLis
tener(this, name, value)); |
| 642 else if (name == onmousedownAttr) | 648 else if (name == onmousedownAttr) |
| 643 setAttributeEventListener(EventTypeNames::mousedown, createAttributeEven
tListener(this, name, value)); | 649 setAttributeEventListener(EventTypeNames::mousedown, createAttributeEven
tListener(this, name, value)); |
| 644 else if (name == onmouseenterAttr) | 650 else if (name == onmouseenterAttr) |
| 645 setAttributeEventListener(EventTypeNames::mouseenter, createAttributeEve
ntListener(this, name, value)); | 651 setAttributeEventListener(EventTypeNames::mouseenter, createAttributeEve
ntListener(this, name, value)); |
| 646 else if (name == onmouseleaveAttr) | 652 else if (name == onmouseleaveAttr) |
| 647 setAttributeEventListener(EventTypeNames::mouseleave, createAttributeEve
ntListener(this, name, value)); | 653 setAttributeEventListener(EventTypeNames::mouseleave, createAttributeEve
ntListener(this, name, value)); |
| 648 else if (name == onmousemoveAttr) | 654 else if (name == onmousemoveAttr) |
| 649 setAttributeEventListener(EventTypeNames::mousemove, createAttributeEven
tListener(this, name, value)); | 655 setAttributeEventListener(EventTypeNames::mousemove, createAttributeEven
tListener(this, name, value)); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 } | 1191 } |
| 1186 | 1192 |
| 1187 if (name == classAttr) | 1193 if (name == classAttr) |
| 1188 return true; | 1194 return true; |
| 1189 | 1195 |
| 1190 return animatableAttributes.contains(name); | 1196 return animatableAttributes.contains(name); |
| 1191 } | 1197 } |
| 1192 #endif | 1198 #endif |
| 1193 | 1199 |
| 1194 } | 1200 } |
| OLD | NEW |