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

Unified Diff: Source/core/html/HTMLElement.cpp

Issue 27132002: Add missing event handler attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@notenumerable
Patch Set: alphabetize Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.cpp
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
index b4a6d226187c62c4399075a3b0405d7369336f2f..660ef84c31ecd5d9ae346c52e050e8a631d9664f 100644
--- a/Source/core/html/HTMLElement.cpp
+++ b/Source/core/html/HTMLElement.cpp
@@ -207,7 +207,9 @@ AtomicString HTMLElement::eventNameForAttributeName(const QualifiedName& attrNam
attributeNameToEventNameMap.set(onanimationstartAttr.localName(), EventTypeNames::animationstart);
attributeNameToEventNameMap.set(onanimationiterationAttr.localName(), EventTypeNames::animationiteration);
attributeNameToEventNameMap.set(onanimationendAttr.localName(), EventTypeNames::animationend);
+ attributeNameToEventNameMap.set(oncancelAttr.localName(), EventTypeNames::cancel);
attributeNameToEventNameMap.set(onclickAttr.localName(), EventTypeNames::click);
+ attributeNameToEventNameMap.set(oncloseAttr.localName(), EventTypeNames::close);
attributeNameToEventNameMap.set(oncontextmenuAttr.localName(), EventTypeNames::contextmenu);
attributeNameToEventNameMap.set(ondblclickAttr.localName(), EventTypeNames::dblclick);
attributeNameToEventNameMap.set(onmousedownAttr.localName(), EventTypeNames::mousedown);
@@ -260,6 +262,7 @@ AtomicString HTMLElement::eventNameForAttributeName(const QualifiedName& attrNam
attributeNameToEventNameMap.set(oncanplayAttr.localName(), EventTypeNames::canplay);
attributeNameToEventNameMap.set(oncanplaythroughAttr.localName(), EventTypeNames::canplaythrough);
attributeNameToEventNameMap.set(onchangeAttr.localName(), EventTypeNames::change);
+ attributeNameToEventNameMap.set(oncuechangeAttr.localName(), EventTypeNames::cuechange);
attributeNameToEventNameMap.set(ondurationchangeAttr.localName(), EventTypeNames::durationchange);
attributeNameToEventNameMap.set(onemptiedAttr.localName(), EventTypeNames::emptied);
attributeNameToEventNameMap.set(onendedAttr.localName(), EventTypeNames::ended);
@@ -275,6 +278,7 @@ AtomicString HTMLElement::eventNameForAttributeName(const QualifiedName& attrNam
attributeNameToEventNameMap.set(onseekedAttr.localName(), EventTypeNames::seeked);
attributeNameToEventNameMap.set(onseekingAttr.localName(), EventTypeNames::seeking);
attributeNameToEventNameMap.set(onselectAttr.localName(), EventTypeNames::select);
+ attributeNameToEventNameMap.set(onshowAttr.localName(), EventTypeNames::show);
attributeNameToEventNameMap.set(onstalledAttr.localName(), EventTypeNames::stalled);
attributeNameToEventNameMap.set(onsuspendAttr.localName(), EventTypeNames::suspend);
attributeNameToEventNameMap.set(ontimeupdateAttr.localName(), EventTypeNames::timeupdate);
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698