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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 if (!attrName.namespaceURI().isNull()) | 197 if (!attrName.namespaceURI().isNull()) |
198 return AtomicString(); | 198 return AtomicString(); |
199 | 199 |
200 typedef HashMap<AtomicString, AtomicString> StringToStringMap; | 200 typedef HashMap<AtomicString, AtomicString> StringToStringMap; |
201 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); | 201 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); |
202 if (!attributeNameToEventNameMap.size()) { | 202 if (!attributeNameToEventNameMap.size()) { |
203 attributeNameToEventNameMap.set(onclickAttr.localName(), eventNames().cl
ickEvent); | 203 attributeNameToEventNameMap.set(onclickAttr.localName(), eventNames().cl
ickEvent); |
204 attributeNameToEventNameMap.set(oncontextmenuAttr.localName(), eventName
s().contextmenuEvent); | 204 attributeNameToEventNameMap.set(oncontextmenuAttr.localName(), eventName
s().contextmenuEvent); |
205 attributeNameToEventNameMap.set(ondblclickAttr.localName(), eventNames()
.dblclickEvent); | 205 attributeNameToEventNameMap.set(ondblclickAttr.localName(), eventNames()
.dblclickEvent); |
206 attributeNameToEventNameMap.set(onmousedownAttr.localName(), eventNames(
).mousedownEvent); | 206 attributeNameToEventNameMap.set(onmousedownAttr.localName(), eventNames(
).mousedownEvent); |
| 207 attributeNameToEventNameMap.set(onmouseenterAttr.localName(), eventNames
().mouseenterEvent); |
| 208 attributeNameToEventNameMap.set(onmouseleaveAttr.localName(), eventNames
().mouseleaveEvent); |
207 attributeNameToEventNameMap.set(onmousemoveAttr.localName(), eventNames(
).mousemoveEvent); | 209 attributeNameToEventNameMap.set(onmousemoveAttr.localName(), eventNames(
).mousemoveEvent); |
208 attributeNameToEventNameMap.set(onmouseoutAttr.localName(), eventNames()
.mouseoutEvent); | 210 attributeNameToEventNameMap.set(onmouseoutAttr.localName(), eventNames()
.mouseoutEvent); |
209 attributeNameToEventNameMap.set(onmouseoverAttr.localName(), eventNames(
).mouseoverEvent); | 211 attributeNameToEventNameMap.set(onmouseoverAttr.localName(), eventNames(
).mouseoverEvent); |
210 attributeNameToEventNameMap.set(onmouseupAttr.localName(), eventNames().
mouseupEvent); | 212 attributeNameToEventNameMap.set(onmouseupAttr.localName(), eventNames().
mouseupEvent); |
211 attributeNameToEventNameMap.set(onmousewheelAttr.localName(), eventNames
().mousewheelEvent); | 213 attributeNameToEventNameMap.set(onmousewheelAttr.localName(), eventNames
().mousewheelEvent); |
212 attributeNameToEventNameMap.set(onfocusAttr.localName(), eventNames().fo
cusEvent); | 214 attributeNameToEventNameMap.set(onfocusAttr.localName(), eventNames().fo
cusEvent); |
213 attributeNameToEventNameMap.set(onfocusinAttr.localName(), eventNames().
focusinEvent); | 215 attributeNameToEventNameMap.set(onfocusinAttr.localName(), eventNames().
focusinEvent); |
214 attributeNameToEventNameMap.set(onfocusoutAttr.localName(), eventNames()
.focusoutEvent); | 216 attributeNameToEventNameMap.set(onfocusoutAttr.localName(), eventNames()
.focusoutEvent); |
215 attributeNameToEventNameMap.set(onblurAttr.localName(), eventNames().blu
rEvent); | 217 attributeNameToEventNameMap.set(onblurAttr.localName(), eventNames().blu
rEvent); |
216 attributeNameToEventNameMap.set(onkeydownAttr.localName(), eventNames().
keydownEvent); | 218 attributeNameToEventNameMap.set(onkeydownAttr.localName(), eventNames().
keydownEvent); |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 #ifndef NDEBUG | 1092 #ifndef NDEBUG |
1091 | 1093 |
1092 // For use in the debugger | 1094 // For use in the debugger |
1093 void dumpInnerHTML(WebCore::HTMLElement*); | 1095 void dumpInnerHTML(WebCore::HTMLElement*); |
1094 | 1096 |
1095 void dumpInnerHTML(WebCore::HTMLElement* element) | 1097 void dumpInnerHTML(WebCore::HTMLElement* element) |
1096 { | 1098 { |
1097 printf("%s\n", element->innerHTML().ascii().data()); | 1099 printf("%s\n", element->innerHTML().ascii().data()); |
1098 } | 1100 } |
1099 #endif | 1101 #endif |
OLD | NEW |