OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 { | 200 { |
201 if (!attrName.namespaceURI().isNull()) | 201 if (!attrName.namespaceURI().isNull()) |
202 return AtomicString(); | 202 return AtomicString(); |
203 | 203 |
204 typedef HashMap<AtomicString, AtomicString> StringToStringMap; | 204 typedef HashMap<AtomicString, AtomicString> StringToStringMap; |
205 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); | 205 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); |
206 if (!attributeNameToEventNameMap.size()) { | 206 if (!attributeNameToEventNameMap.size()) { |
207 attributeNameToEventNameMap.set(onanimationstartAttr.localName(), EventT
ypeNames::animationstart); | 207 attributeNameToEventNameMap.set(onanimationstartAttr.localName(), EventT
ypeNames::animationstart); |
208 attributeNameToEventNameMap.set(onanimationiterationAttr.localName(), Ev
entTypeNames::animationiteration); | 208 attributeNameToEventNameMap.set(onanimationiterationAttr.localName(), Ev
entTypeNames::animationiteration); |
209 attributeNameToEventNameMap.set(onanimationendAttr.localName(), EventTyp
eNames::animationend); | 209 attributeNameToEventNameMap.set(onanimationendAttr.localName(), EventTyp
eNames::animationend); |
| 210 attributeNameToEventNameMap.set(oncancelAttr.localName(), EventTypeNames
::cancel); |
210 attributeNameToEventNameMap.set(onclickAttr.localName(), EventTypeNames:
:click); | 211 attributeNameToEventNameMap.set(onclickAttr.localName(), EventTypeNames:
:click); |
| 212 attributeNameToEventNameMap.set(oncloseAttr.localName(), EventTypeNames:
:close); |
211 attributeNameToEventNameMap.set(oncontextmenuAttr.localName(), EventType
Names::contextmenu); | 213 attributeNameToEventNameMap.set(oncontextmenuAttr.localName(), EventType
Names::contextmenu); |
212 attributeNameToEventNameMap.set(ondblclickAttr.localName(), EventTypeNam
es::dblclick); | 214 attributeNameToEventNameMap.set(ondblclickAttr.localName(), EventTypeNam
es::dblclick); |
213 attributeNameToEventNameMap.set(onmousedownAttr.localName(), EventTypeNa
mes::mousedown); | 215 attributeNameToEventNameMap.set(onmousedownAttr.localName(), EventTypeNa
mes::mousedown); |
214 attributeNameToEventNameMap.set(onmouseenterAttr.localName(), EventTypeN
ames::mouseenter); | 216 attributeNameToEventNameMap.set(onmouseenterAttr.localName(), EventTypeN
ames::mouseenter); |
215 attributeNameToEventNameMap.set(onmouseleaveAttr.localName(), EventTypeN
ames::mouseleave); | 217 attributeNameToEventNameMap.set(onmouseleaveAttr.localName(), EventTypeN
ames::mouseleave); |
216 attributeNameToEventNameMap.set(onmousemoveAttr.localName(), EventTypeNa
mes::mousemove); | 218 attributeNameToEventNameMap.set(onmousemoveAttr.localName(), EventTypeNa
mes::mousemove); |
217 attributeNameToEventNameMap.set(onmouseoutAttr.localName(), EventTypeNam
es::mouseout); | 219 attributeNameToEventNameMap.set(onmouseoutAttr.localName(), EventTypeNam
es::mouseout); |
218 attributeNameToEventNameMap.set(onmouseoverAttr.localName(), EventTypeNa
mes::mouseover); | 220 attributeNameToEventNameMap.set(onmouseoverAttr.localName(), EventTypeNa
mes::mouseover); |
219 attributeNameToEventNameMap.set(onmouseupAttr.localName(), EventTypeName
s::mouseup); | 221 attributeNameToEventNameMap.set(onmouseupAttr.localName(), EventTypeName
s::mouseup); |
220 attributeNameToEventNameMap.set(onmousewheelAttr.localName(), EventTypeN
ames::mousewheel); | 222 attributeNameToEventNameMap.set(onmousewheelAttr.localName(), EventTypeN
ames::mousewheel); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 attributeNameToEventNameMap.set(ontouchstartAttr.localName(), EventTypeN
ames::touchstart); | 255 attributeNameToEventNameMap.set(ontouchstartAttr.localName(), EventTypeN
ames::touchstart); |
254 attributeNameToEventNameMap.set(ontouchmoveAttr.localName(), EventTypeNa
mes::touchmove); | 256 attributeNameToEventNameMap.set(ontouchmoveAttr.localName(), EventTypeNa
mes::touchmove); |
255 attributeNameToEventNameMap.set(ontouchendAttr.localName(), EventTypeNam
es::touchend); | 257 attributeNameToEventNameMap.set(ontouchendAttr.localName(), EventTypeNam
es::touchend); |
256 attributeNameToEventNameMap.set(ontouchcancelAttr.localName(), EventType
Names::touchcancel); | 258 attributeNameToEventNameMap.set(ontouchcancelAttr.localName(), EventType
Names::touchcancel); |
257 attributeNameToEventNameMap.set(onwebkitfullscreenchangeAttr.localName()
, EventTypeNames::webkitfullscreenchange); | 259 attributeNameToEventNameMap.set(onwebkitfullscreenchangeAttr.localName()
, EventTypeNames::webkitfullscreenchange); |
258 attributeNameToEventNameMap.set(onwebkitfullscreenerrorAttr.localName(),
EventTypeNames::webkitfullscreenerror); | 260 attributeNameToEventNameMap.set(onwebkitfullscreenerrorAttr.localName(),
EventTypeNames::webkitfullscreenerror); |
259 attributeNameToEventNameMap.set(onabortAttr.localName(), EventTypeNames:
:abort); | 261 attributeNameToEventNameMap.set(onabortAttr.localName(), EventTypeNames:
:abort); |
260 attributeNameToEventNameMap.set(oncanplayAttr.localName(), EventTypeName
s::canplay); | 262 attributeNameToEventNameMap.set(oncanplayAttr.localName(), EventTypeName
s::canplay); |
261 attributeNameToEventNameMap.set(oncanplaythroughAttr.localName(), EventT
ypeNames::canplaythrough); | 263 attributeNameToEventNameMap.set(oncanplaythroughAttr.localName(), EventT
ypeNames::canplaythrough); |
262 attributeNameToEventNameMap.set(onchangeAttr.localName(), EventTypeNames
::change); | 264 attributeNameToEventNameMap.set(onchangeAttr.localName(), EventTypeNames
::change); |
| 265 attributeNameToEventNameMap.set(oncuechangeAttr.localName(), EventTypeNa
mes::cuechange); |
263 attributeNameToEventNameMap.set(ondurationchangeAttr.localName(), EventT
ypeNames::durationchange); | 266 attributeNameToEventNameMap.set(ondurationchangeAttr.localName(), EventT
ypeNames::durationchange); |
264 attributeNameToEventNameMap.set(onemptiedAttr.localName(), EventTypeName
s::emptied); | 267 attributeNameToEventNameMap.set(onemptiedAttr.localName(), EventTypeName
s::emptied); |
265 attributeNameToEventNameMap.set(onendedAttr.localName(), EventTypeNames:
:ended); | 268 attributeNameToEventNameMap.set(onendedAttr.localName(), EventTypeNames:
:ended); |
266 attributeNameToEventNameMap.set(onloadeddataAttr.localName(), EventTypeN
ames::loadeddata); | 269 attributeNameToEventNameMap.set(onloadeddataAttr.localName(), EventTypeN
ames::loadeddata); |
267 attributeNameToEventNameMap.set(onloadedmetadataAttr.localName(), EventT
ypeNames::loadedmetadata); | 270 attributeNameToEventNameMap.set(onloadedmetadataAttr.localName(), EventT
ypeNames::loadedmetadata); |
268 attributeNameToEventNameMap.set(onloadstartAttr.localName(), EventTypeNa
mes::loadstart); | 271 attributeNameToEventNameMap.set(onloadstartAttr.localName(), EventTypeNa
mes::loadstart); |
269 attributeNameToEventNameMap.set(onpauseAttr.localName(), EventTypeNames:
:pause); | 272 attributeNameToEventNameMap.set(onpauseAttr.localName(), EventTypeNames:
:pause); |
270 attributeNameToEventNameMap.set(onplayAttr.localName(), EventTypeNames::
play); | 273 attributeNameToEventNameMap.set(onplayAttr.localName(), EventTypeNames::
play); |
271 attributeNameToEventNameMap.set(onplayingAttr.localName(), EventTypeName
s::playing); | 274 attributeNameToEventNameMap.set(onplayingAttr.localName(), EventTypeName
s::playing); |
272 attributeNameToEventNameMap.set(onprogressAttr.localName(), EventTypeNam
es::progress); | 275 attributeNameToEventNameMap.set(onprogressAttr.localName(), EventTypeNam
es::progress); |
273 attributeNameToEventNameMap.set(onratechangeAttr.localName(), EventTypeN
ames::ratechange); | 276 attributeNameToEventNameMap.set(onratechangeAttr.localName(), EventTypeN
ames::ratechange); |
274 attributeNameToEventNameMap.set(onresetAttr.localName(), EventTypeNames:
:reset); | 277 attributeNameToEventNameMap.set(onresetAttr.localName(), EventTypeNames:
:reset); |
275 attributeNameToEventNameMap.set(onseekedAttr.localName(), EventTypeNames
::seeked); | 278 attributeNameToEventNameMap.set(onseekedAttr.localName(), EventTypeNames
::seeked); |
276 attributeNameToEventNameMap.set(onseekingAttr.localName(), EventTypeName
s::seeking); | 279 attributeNameToEventNameMap.set(onseekingAttr.localName(), EventTypeName
s::seeking); |
277 attributeNameToEventNameMap.set(onselectAttr.localName(), EventTypeNames
::select); | 280 attributeNameToEventNameMap.set(onselectAttr.localName(), EventTypeNames
::select); |
| 281 attributeNameToEventNameMap.set(onshowAttr.localName(), EventTypeNames::
show); |
278 attributeNameToEventNameMap.set(onstalledAttr.localName(), EventTypeName
s::stalled); | 282 attributeNameToEventNameMap.set(onstalledAttr.localName(), EventTypeName
s::stalled); |
279 attributeNameToEventNameMap.set(onsuspendAttr.localName(), EventTypeName
s::suspend); | 283 attributeNameToEventNameMap.set(onsuspendAttr.localName(), EventTypeName
s::suspend); |
280 attributeNameToEventNameMap.set(ontimeupdateAttr.localName(), EventTypeN
ames::timeupdate); | 284 attributeNameToEventNameMap.set(ontimeupdateAttr.localName(), EventTypeN
ames::timeupdate); |
281 attributeNameToEventNameMap.set(onvolumechangeAttr.localName(), EventTyp
eNames::volumechange); | 285 attributeNameToEventNameMap.set(onvolumechangeAttr.localName(), EventTyp
eNames::volumechange); |
282 attributeNameToEventNameMap.set(onwaitingAttr.localName(), EventTypeName
s::waiting); | 286 attributeNameToEventNameMap.set(onwaitingAttr.localName(), EventTypeName
s::waiting); |
283 attributeNameToEventNameMap.set(onloadAttr.localName(), EventTypeNames::
load); | 287 attributeNameToEventNameMap.set(onloadAttr.localName(), EventTypeNames::
load); |
284 } | 288 } |
285 | 289 |
286 return attributeNameToEventNameMap.get(attrName.localName()); | 290 return attributeNameToEventNameMap.get(attrName.localName()); |
287 } | 291 } |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 #ifndef NDEBUG | 1121 #ifndef NDEBUG |
1118 | 1122 |
1119 // For use in the debugger | 1123 // For use in the debugger |
1120 void dumpInnerHTML(WebCore::HTMLElement*); | 1124 void dumpInnerHTML(WebCore::HTMLElement*); |
1121 | 1125 |
1122 void dumpInnerHTML(WebCore::HTMLElement* element) | 1126 void dumpInnerHTML(WebCore::HTMLElement* element) |
1123 { | 1127 { |
1124 printf("%s\n", element->innerHTML().ascii().data()); | 1128 printf("%s\n", element->innerHTML().ascii().data()); |
1125 } | 1129 } |
1126 #endif | 1130 #endif |
OLD | NEW |