Chromium Code Reviews| Index: Source/core/svg/SVGElement.cpp |
| diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
| index a567999d9cafb910faacd4b635e881214b46b36a..84523c2244005ee0a6451b6cb06425b05bc806a1 100644 |
| --- a/Source/core/svg/SVGElement.cpp |
| +++ b/Source/core/svg/SVGElement.cpp |
| @@ -675,7 +675,7 @@ void SVGElement::parseAttribute(const QualifiedName& name, const AtomicString& v |
| // standard events |
| const AtomicString& eventName = HTMLElement::eventNameForAttributeName(name); |
| if (!eventName.isNull()) |
| - setAttributeEventListener(eventName, createAttributeEventListener(this, name, value)); |
| + setAttributeEventListener(eventName, createAttributeEventListener(this, name, value, eventParameterName())); |
| else |
| Element::parseAttribute(name, value); |
| } |
| @@ -1176,4 +1176,10 @@ void SVGElement::trace(Visitor* visitor) |
| Element::trace(visitor); |
| } |
| +const AtomicString& SVGElement::eventParameterName() |
| +{ |
| + DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
|
haraken
2014/06/10 15:05:32
Use DEFINE_STATIC_LOCAL(const AtomicString, evtStr
|
| + return evtString; |
| +} |
| + |
| } |