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

Unified Diff: Source/core/svg/SVGElement.cpp

Issue 106053007: Add beginEvent/endEvent listeners via the onbegin/onend attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add onrepeat too Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index f782374aadb5f263b901fab3408abcfb3153699e..0f940ab842debe7526bb71d61c0d53a336d5a1d2 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -637,6 +637,12 @@ void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v
// standard events
if (name == onloadAttr)
setAttributeEventListener(EventTypeNames::load, createAttributeEventListener(this, name, value));
+ else if (name == onbeginAttr)
+ setAttributeEventListener(EventTypeNames::beginEvent, createAttributeEventListener(this, name, value));
+ else if (name == onendAttr)
+ setAttributeEventListener(EventTypeNames::endEvent, createAttributeEventListener(this, name, value));
+ else if (name == onrepeatAttr)
+ setAttributeEventListener(EventTypeNames::repeatEvent, createAttributeEventListener(this, name, value));
else if (name == onclickAttr)
setAttributeEventListener(EventTypeNames::click, createAttributeEventListener(this, name, value));
else if (name == onmousedownAttr)
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698