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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPSource.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698