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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp b/third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp
index 19e6f619f0fc0534c52e171c75d18aae02590ce1..f03ce86208302697e25065fe70c4bc9d84f14a4c 100644
--- a/third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp
@@ -36,91 +36,91 @@ namespace ShadowElementNames {
const AtomicString& detailsContent()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("details-content", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("details-content"));
return name;
}
const AtomicString& detailsSummary()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("details-summary", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("details-summary"));
return name;
}
const AtomicString& detailsMarker()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("details-marker", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("details-marker"));
return name;
}
const AtomicString& dateTimeEdit()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("date-time-edit", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("date-time-edit"));
return name;
}
const AtomicString& spinButton()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("spin", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("spin"));
return name;
}
const AtomicString& clearButton()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("clear", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("clear"));
return name;
}
const AtomicString& editingViewPort()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("editing-view-port", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("editing-view-port"));
return name;
}
const AtomicString& innerEditor()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("inner-editor", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("inner-editor"));
return name;
}
const AtomicString& pickerIndicator()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("picker", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("picker"));
return name;
}
const AtomicString& placeholder()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("placeholder", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("placeholder"));
return name;
}
const AtomicString& searchDecoration()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("decoration", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("decoration"));
return name;
}
const AtomicString& sliderThumb()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("thumb", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("thumb"));
return name;
}
const AtomicString& sliderTrack()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("track", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("track"));
return name;
}
const AtomicString& textFieldContainer()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("text-field-container", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("text-field-container"));
return name;
}
const AtomicString& optGroupLabel()
{
- DEFINE_STATIC_LOCAL(AtomicString, name, ("optgroup-label", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, name, ("optgroup-label"));
return name;
}

Powered by Google App Engine
This is Rietveld 408576698