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

Unified Diff: Source/WebCore/scripts/StaticString.pm

Issue 13686020: Make HTMLNames threadsafe (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove extra assert Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/scripts/StaticString.pm
diff --git a/Source/WebCore/scripts/StaticString.pm b/Source/WebCore/scripts/StaticString.pm
index a10e3c82f6aa7ef6e86f55a5620d4125b55c66d8..7fc2ad2f9c4d84ca34ec0d29d06c3c82c3d1e802 100644
--- a/Source/WebCore/scripts/StaticString.pm
+++ b/Source/WebCore/scripts/StaticString.pm
@@ -34,6 +34,13 @@ sub GenerateStrings($)
my @result = ();
while ( my ($name, $value) = each %strings ) {
+ my $characterList = join("', '", split("", $value));
+ push(@result, "static const UChar ${name}String16[] = { '$characterList', 0 };\n");
+ }
+
+ push(@result, "\n");
+
+ while ( my ($name, $value) = each %strings ) {
push(@result, "static const LChar ${name}String8[] = \"${value}\";\n");
}
@@ -47,7 +54,7 @@ static StringImpl::StaticASCIILiteral ${name}Data = {
StringImpl::StaticASCIILiteral::s_initialRefCount,
$length,
${name}String8,
- 0,
+ ${name}String16,
StringImpl::StaticASCIILiteral::s_initialFlags | (${hash} << StringImpl::StaticASCIILiteral::s_hashShift)
};
END

Powered by Google App Engine
This is Rietveld 408576698