Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: Source/core/svg/SVGElement.cpp

Issue 18836002: Implement 'mouseenter' and 'mouseleave' from DOM Level 3 Events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Attribute tests. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Window.idl ('k') | Source/core/svg/SVGElementInstance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v alue) 314 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v alue)
315 { 315 {
316 // standard events 316 // standard events
317 if (name == onloadAttr) 317 if (name == onloadAttr)
318 setAttributeEventListener(eventNames().loadEvent, createAttributeEventLi stener(this, name, value)); 318 setAttributeEventListener(eventNames().loadEvent, createAttributeEventLi stener(this, name, value));
319 else if (name == onclickAttr) 319 else if (name == onclickAttr)
320 setAttributeEventListener(eventNames().clickEvent, createAttributeEventL istener(this, name, value)); 320 setAttributeEventListener(eventNames().clickEvent, createAttributeEventL istener(this, name, value));
321 else if (name == onmousedownAttr) 321 else if (name == onmousedownAttr)
322 setAttributeEventListener(eventNames().mousedownEvent, createAttributeEv entListener(this, name, value)); 322 setAttributeEventListener(eventNames().mousedownEvent, createAttributeEv entListener(this, name, value));
323 else if (name == onmouseenterAttr)
324 setAttributeEventListener(eventNames().mouseenterEvent, createAttributeE ventListener(this, name, value));
325 else if (name == onmouseleaveAttr)
326 setAttributeEventListener(eventNames().mouseleaveEvent, createAttributeE ventListener(this, name, value));
323 else if (name == onmousemoveAttr) 327 else if (name == onmousemoveAttr)
324 setAttributeEventListener(eventNames().mousemoveEvent, createAttributeEv entListener(this, name, value)); 328 setAttributeEventListener(eventNames().mousemoveEvent, createAttributeEv entListener(this, name, value));
325 else if (name == onmouseoutAttr) 329 else if (name == onmouseoutAttr)
326 setAttributeEventListener(eventNames().mouseoutEvent, createAttributeEve ntListener(this, name, value)); 330 setAttributeEventListener(eventNames().mouseoutEvent, createAttributeEve ntListener(this, name, value));
327 else if (name == onmouseoverAttr) 331 else if (name == onmouseoverAttr)
328 setAttributeEventListener(eventNames().mouseoverEvent, createAttributeEv entListener(this, name, value)); 332 setAttributeEventListener(eventNames().mouseoverEvent, createAttributeEv entListener(this, name, value));
329 else if (name == onmouseupAttr) 333 else if (name == onmouseupAttr)
330 setAttributeEventListener(eventNames().mouseupEvent, createAttributeEven tListener(this, name, value)); 334 setAttributeEventListener(eventNames().mouseupEvent, createAttributeEven tListener(this, name, value));
331 else if (name == SVGNames::onfocusinAttr) 335 else if (name == SVGNames::onfocusinAttr)
332 setAttributeEventListener(eventNames().focusinEvent, createAttributeEven tListener(this, name, value)); 336 setAttributeEventListener(eventNames().focusinEvent, createAttributeEven tListener(this, name, value));
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 } 742 }
739 743
740 if (name == classAttr) 744 if (name == classAttr)
741 return isSVGStyledElement(); 745 return isSVGStyledElement();
742 746
743 return animatableAttributes.contains(name); 747 return animatableAttributes.contains(name);
744 } 748 }
745 #endif 749 #endif
746 750
747 } 751 }
OLDNEW
« no previous file with comments | « Source/core/page/Window.idl ('k') | Source/core/svg/SVGElementInstance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698