| 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-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 6 * (http://www.torchmobile.com/) | 6 * (http://www.torchmobile.com/) |
| 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 } else { | 303 } else { |
| 304 Element::collectStyleForPresentationAttribute(name, value, style); | 304 Element::collectStyleForPresentationAttribute(name, value, style); |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 const AtomicString& HTMLElement::eventNameForAttributeName( | 308 const AtomicString& HTMLElement::eventNameForAttributeName( |
| 309 const QualifiedName& attrName) { | 309 const QualifiedName& attrName) { |
| 310 if (!attrName.namespaceURI().isNull()) | 310 if (!attrName.namespaceURI().isNull()) |
| 311 return nullAtom; | 311 return nullAtom; |
| 312 | 312 |
| 313 if (!attrName.localName().startsWith("on", TextCaseInsensitive)) | 313 if (!attrName.localName().startsWith("on", TextCaseASCIIInsensitive)) |
| 314 return nullAtom; | 314 return nullAtom; |
| 315 | 315 |
| 316 typedef HashMap<AtomicString, AtomicString> StringToStringMap; | 316 typedef HashMap<AtomicString, AtomicString> StringToStringMap; |
| 317 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); | 317 DEFINE_STATIC_LOCAL(StringToStringMap, attributeNameToEventNameMap, ()); |
| 318 if (!attributeNameToEventNameMap.size()) { | 318 if (!attributeNameToEventNameMap.size()) { |
| 319 struct AttrToEventName { | 319 struct AttrToEventName { |
| 320 const QualifiedName& attr; | 320 const QualifiedName& attr; |
| 321 const AtomicString& event; | 321 const AtomicString& event; |
| 322 }; | 322 }; |
| 323 AttrToEventName attrToEventNames[] = { | 323 AttrToEventName attrToEventNames[] = { |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 | 1202 |
| 1203 #ifndef NDEBUG | 1203 #ifndef NDEBUG |
| 1204 | 1204 |
| 1205 // For use in the debugger | 1205 // For use in the debugger |
| 1206 void dumpInnerHTML(blink::HTMLElement*); | 1206 void dumpInnerHTML(blink::HTMLElement*); |
| 1207 | 1207 |
| 1208 void dumpInnerHTML(blink::HTMLElement* element) { | 1208 void dumpInnerHTML(blink::HTMLElement* element) { |
| 1209 printf("%s\n", element->innerHTML().ascii().data()); | 1209 printf("%s\n", element->innerHTML().ascii().data()); |
| 1210 } | 1210 } |
| 1211 #endif | 1211 #endif |
| OLD | NEW |