Chromium Code Reviews| Index: Source/core/html/HTMLElement.cpp |
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
| index f11dc4744effdecc44fdbb18561dcb88920e488c..a312109ac41fe6d142551c916c1c0e792fbedc0e 100644 |
| --- a/Source/core/html/HTMLElement.cpp |
| +++ b/Source/core/html/HTMLElement.cpp |
| @@ -314,7 +314,7 @@ void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString& |
| } else { |
| const AtomicString& eventName = eventNameForAttributeName(name); |
| if (!eventName.isNull()) |
| - setAttributeEventListener(eventName, createAttributeEventListener(this, name, value)); |
| + setAttributeEventListener(eventName, createAttributeEventListener(this, name, value, eventParameterName())); |
| } |
| } |
| @@ -950,6 +950,12 @@ void HTMLElement::handleKeypressEvent(KeyboardEvent* event) |
| } |
| } |
| +const AtomicString& HTMLElement::eventParameterName() |
| +{ |
| + DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event")); |
|
haraken
2014/06/10 15:05:32
Use DEFINE_STATIC_LOCAL(const AtomicString, eventS
|
| + return eventString; |
| +} |
| + |
| } // namespace WebCore |
| #ifndef NDEBUG |