Title: [283458] trunk/Source/WebCore
Revision
283458
Author
[email protected]
Date
2021-10-02 19:11:46 -0700 (Sat, 02 Oct 2021)

Log Message

Fix warnings in perl script
https://bugs.webkit.org/show_bug.cgi?id=231124

Patch by Nikos Mouchtaris <[email protected]> on 2021-10-02
Reviewed by Simon Fraser.

Fix for warnings when running script.

* css/makevalues.pl:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (283457 => 283458)


--- trunk/Source/WebCore/ChangeLog	2021-10-03 01:36:51 UTC (rev 283457)
+++ trunk/Source/WebCore/ChangeLog	2021-10-03 02:11:46 UTC (rev 283458)
@@ -1,3 +1,14 @@
+2021-10-02  Nikos Mouchtaris  <[email protected]>
+
+        Fix warnings in perl script
+        https://bugs.webkit.org/show_bug.cgi?id=231124
+
+        Reviewed by Simon Fraser.
+
+        Fix for warnings when running script.
+
+        * css/makevalues.pl:
+
 2021-10-02  Yusuke Suzuki  <[email protected]>
 
         Remove JSC hack after r283410

Modified: trunk/Source/WebCore/css/makevalues.pl (283457 => 283458)


--- trunk/Source/WebCore/css/makevalues.pl	2021-10-03 01:36:51 UTC (rev 283457)
+++ trunk/Source/WebCore/css/makevalues.pl	2021-10-03 02:11:46 UTC (rev 283458)
@@ -102,7 +102,7 @@
 for my $i (0 .. $#names) {
   my $id = $names[$i];
   $id =~ s/(^[^-])|-(.)/uc($1||$2)/ge;
-  if($lower_names[$i]=="-infinity") {
+  if($lower_names[$i] eq "-infinity") {
     print GPERF $lower_names[$i] . ", CSSValueNegativeInfinity" . "\n";
   } else {
     print GPERF $lower_names[$i] . ", CSSValue" . $id . "\n";
@@ -183,7 +183,7 @@
 foreach my $name (@names) {
   my $id = $name;
   $id =~ s/(^[^-])|-(.)/uc($1||$2)/ge;
-  if($name=="-infinity") {
+  if($name eq "-infinity") {
     print HEADER "    CSSValueNegativeInfinity = " . $i . ",\n";
   } else {
     print HEADER "    CSSValue" . $id . " = " . $i . ",\n";
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to