Title: [273880] trunk/Source/WebCore
Revision
273880
Author
cl...@igalia.com
Date
2021-03-04 01:39:03 -0800 (Thu, 04 Mar 2021)

Log Message

Make the data backing generated global AtomString values accessible
https://bugs.webkit.org/show_bug.cgi?id=222552

Reviewed by Darin Adler.

Modify name header generation script to make the const string data public.

No new tests because there is no behavior change.

* bindings/scripts/StaticString.pm:
(GenerateStrings):
* dom/make_names.pl:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (273879 => 273880)


--- trunk/Source/WebCore/ChangeLog	2021-03-04 09:32:12 UTC (rev 273879)
+++ trunk/Source/WebCore/ChangeLog	2021-03-04 09:39:03 UTC (rev 273880)
@@ -1,3 +1,18 @@
+2021-03-04  Chris Lord  <cl...@igalia.com>
+
+        Make the data backing generated global AtomString values accessible
+        https://bugs.webkit.org/show_bug.cgi?id=222552
+
+        Reviewed by Darin Adler.
+
+        Modify name header generation script to make the const string data public.
+
+        No new tests because there is no behavior change.
+
+        * bindings/scripts/StaticString.pm:
+        (GenerateStrings):
+        * dom/make_names.pl:
+
 2021-03-04  Youenn Fablet  <you...@apple.com>
 
         Can not read blobs in sandboxed iframes

Modified: trunk/Source/WebCore/bindings/scripts/StaticString.pm (273879 => 273880)


--- trunk/Source/WebCore/bindings/scripts/StaticString.pm	2021-03-04 09:32:12 UTC (rev 273879)
+++ trunk/Source/WebCore/bindings/scripts/StaticString.pm	2021-03-04 09:39:03 UTC (rev 273880)
@@ -43,7 +43,7 @@
 
     for my $name (sort keys %strings) {
         my $value = $strings{$name};
-        push(@result, "static constexpr StringImpl::StaticStringImpl ${name}Data(\"${value}\");\n");
+        push(@result, "const StringImpl::StaticStringImpl ${name}Data(\"${value}\");\n");
     }
 
     push(@result, <<END);

Modified: trunk/Source/WebCore/dom/make_names.pl (273879 => 273880)


--- trunk/Source/WebCore/dom/make_names.pl	2021-03-04 09:32:12 UTC (rev 273879)
+++ trunk/Source/WebCore/dom/make_names.pl	2021-03-04 09:39:03 UTC (rev 273880)
@@ -103,6 +103,8 @@
 #include <wtf/text/AtomString.h>
 END
 
+    printMacros($F, "extern const StringImpl::StaticStringImpl", "Data", \%parameters);
+    print F "\n";
     printMacros($F, "extern MainThreadLazyNeverDestroyed<const WTF::AtomString>", "", \%parameters);
     print F "#endif\n\n";
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to