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

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

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "core/html/shadow/ShadowElementNames.h" 31 #include "core/html/shadow/ShadowElementNames.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 namespace ShadowElementNames { 35 namespace ShadowElementNames {
36 36
37 const AtomicString& detailsContent() 37 const AtomicString& detailsContent()
38 { 38 {
39 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-content", AtomicString::Co nstructFromLiteral)); 39 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-content"));
40 return name; 40 return name;
41 } 41 }
42 42
43 const AtomicString& detailsSummary() 43 const AtomicString& detailsSummary()
44 { 44 {
45 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-summary", AtomicString::Co nstructFromLiteral)); 45 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-summary"));
46 return name; 46 return name;
47 } 47 }
48 48
49 const AtomicString& detailsMarker() 49 const AtomicString& detailsMarker()
50 { 50 {
51 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-marker", AtomicString::Con structFromLiteral)); 51 DEFINE_STATIC_LOCAL(AtomicString, name, ("details-marker"));
52 return name; 52 return name;
53 } 53 }
54 54
55 const AtomicString& dateTimeEdit() 55 const AtomicString& dateTimeEdit()
56 { 56 {
57 DEFINE_STATIC_LOCAL(AtomicString, name, ("date-time-edit", AtomicString::Con structFromLiteral)); 57 DEFINE_STATIC_LOCAL(AtomicString, name, ("date-time-edit"));
58 return name; 58 return name;
59 } 59 }
60 60
61 const AtomicString& spinButton() 61 const AtomicString& spinButton()
62 { 62 {
63 DEFINE_STATIC_LOCAL(AtomicString, name, ("spin", AtomicString::ConstructFrom Literal)); 63 DEFINE_STATIC_LOCAL(AtomicString, name, ("spin"));
64 return name; 64 return name;
65 } 65 }
66 66
67 const AtomicString& clearButton() 67 const AtomicString& clearButton()
68 { 68 {
69 DEFINE_STATIC_LOCAL(AtomicString, name, ("clear", AtomicString::ConstructFro mLiteral)); 69 DEFINE_STATIC_LOCAL(AtomicString, name, ("clear"));
70 return name; 70 return name;
71 } 71 }
72 72
73 const AtomicString& editingViewPort() 73 const AtomicString& editingViewPort()
74 { 74 {
75 DEFINE_STATIC_LOCAL(AtomicString, name, ("editing-view-port", AtomicString:: ConstructFromLiteral)); 75 DEFINE_STATIC_LOCAL(AtomicString, name, ("editing-view-port"));
76 return name; 76 return name;
77 } 77 }
78 78
79 const AtomicString& innerEditor() 79 const AtomicString& innerEditor()
80 { 80 {
81 DEFINE_STATIC_LOCAL(AtomicString, name, ("inner-editor", AtomicString::Const ructFromLiteral)); 81 DEFINE_STATIC_LOCAL(AtomicString, name, ("inner-editor"));
82 return name; 82 return name;
83 } 83 }
84 84
85 const AtomicString& pickerIndicator() 85 const AtomicString& pickerIndicator()
86 { 86 {
87 DEFINE_STATIC_LOCAL(AtomicString, name, ("picker", AtomicString::ConstructFr omLiteral)); 87 DEFINE_STATIC_LOCAL(AtomicString, name, ("picker"));
88 return name; 88 return name;
89 } 89 }
90 90
91 const AtomicString& placeholder() 91 const AtomicString& placeholder()
92 { 92 {
93 DEFINE_STATIC_LOCAL(AtomicString, name, ("placeholder", AtomicString::Constr uctFromLiteral)); 93 DEFINE_STATIC_LOCAL(AtomicString, name, ("placeholder"));
94 return name; 94 return name;
95 } 95 }
96 96
97 const AtomicString& searchDecoration() 97 const AtomicString& searchDecoration()
98 { 98 {
99 DEFINE_STATIC_LOCAL(AtomicString, name, ("decoration", AtomicString::Constru ctFromLiteral)); 99 DEFINE_STATIC_LOCAL(AtomicString, name, ("decoration"));
100 return name; 100 return name;
101 } 101 }
102 102
103 const AtomicString& sliderThumb() 103 const AtomicString& sliderThumb()
104 { 104 {
105 DEFINE_STATIC_LOCAL(AtomicString, name, ("thumb", AtomicString::ConstructFro mLiteral)); 105 DEFINE_STATIC_LOCAL(AtomicString, name, ("thumb"));
106 return name; 106 return name;
107 } 107 }
108 108
109 const AtomicString& sliderTrack() 109 const AtomicString& sliderTrack()
110 { 110 {
111 DEFINE_STATIC_LOCAL(AtomicString, name, ("track", AtomicString::ConstructFro mLiteral)); 111 DEFINE_STATIC_LOCAL(AtomicString, name, ("track"));
112 return name; 112 return name;
113 } 113 }
114 114
115 const AtomicString& textFieldContainer() 115 const AtomicString& textFieldContainer()
116 { 116 {
117 DEFINE_STATIC_LOCAL(AtomicString, name, ("text-field-container", AtomicStrin g::ConstructFromLiteral)); 117 DEFINE_STATIC_LOCAL(AtomicString, name, ("text-field-container"));
118 return name; 118 return name;
119 } 119 }
120 120
121 const AtomicString& optGroupLabel() 121 const AtomicString& optGroupLabel()
122 { 122 {
123 DEFINE_STATIC_LOCAL(AtomicString, name, ("optgroup-label", AtomicString::Con structFromLiteral)); 123 DEFINE_STATIC_LOCAL(AtomicString, name, ("optgroup-label"));
124 return name; 124 return name;
125 } 125 }
126 126
127 } // namespace ShadowElementNames 127 } // namespace ShadowElementNames
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698