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

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: 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
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v alue) 313 void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v alue)
314 { 314 {
315 // standard events 315 // standard events
316 if (name == onloadAttr) 316 if (name == onloadAttr)
317 setAttributeEventListener(eventNames().loadEvent, createAttributeEventLi stener(this, name, value)); 317 setAttributeEventListener(eventNames().loadEvent, createAttributeEventLi stener(this, name, value));
318 else if (name == onclickAttr) 318 else if (name == onclickAttr)
319 setAttributeEventListener(eventNames().clickEvent, createAttributeEventL istener(this, name, value)); 319 setAttributeEventListener(eventNames().clickEvent, createAttributeEventL istener(this, name, value));
320 else if (name == onmousedownAttr) 320 else if (name == onmousedownAttr)
321 setAttributeEventListener(eventNames().mousedownEvent, createAttributeEv entListener(this, name, value)); 321 setAttributeEventListener(eventNames().mousedownEvent, createAttributeEv entListener(this, name, value));
322 else if (name == onmouseenterAttr)
323 setAttributeEventListener(eventNames().mouseenterEvent, createAttributeE ventListener(this, name, value));
324 else if (name == onmouseleaveAttr)
325 setAttributeEventListener(eventNames().mouseleaveEvent, createAttributeE ventListener(this, name, value));
322 else if (name == onmousemoveAttr) 326 else if (name == onmousemoveAttr)
323 setAttributeEventListener(eventNames().mousemoveEvent, createAttributeEv entListener(this, name, value)); 327 setAttributeEventListener(eventNames().mousemoveEvent, createAttributeEv entListener(this, name, value));
324 else if (name == onmouseoutAttr) 328 else if (name == onmouseoutAttr)
325 setAttributeEventListener(eventNames().mouseoutEvent, createAttributeEve ntListener(this, name, value)); 329 setAttributeEventListener(eventNames().mouseoutEvent, createAttributeEve ntListener(this, name, value));
326 else if (name == onmouseoverAttr) 330 else if (name == onmouseoverAttr)
327 setAttributeEventListener(eventNames().mouseoverEvent, createAttributeEv entListener(this, name, value)); 331 setAttributeEventListener(eventNames().mouseoverEvent, createAttributeEv entListener(this, name, value));
328 else if (name == onmouseupAttr) 332 else if (name == onmouseupAttr)
329 setAttributeEventListener(eventNames().mouseupEvent, createAttributeEven tListener(this, name, value)); 333 setAttributeEventListener(eventNames().mouseupEvent, createAttributeEven tListener(this, name, value));
330 else if (name == SVGNames::onfocusinAttr) 334 else if (name == SVGNames::onfocusinAttr)
331 setAttributeEventListener(eventNames().focusinEvent, createAttributeEven tListener(this, name, value)); 335 setAttributeEventListener(eventNames().focusinEvent, createAttributeEven tListener(this, name, value));
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 741 }
738 742
739 if (name == classAttr) 743 if (name == classAttr)
740 return isSVGStyledElement(); 744 return isSVGStyledElement();
741 745
742 return animatableAttributes.contains(name); 746 return animatableAttributes.contains(name);
743 } 747 }
744 #endif 748 #endif
745 749
746 } 750 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698