Title: [200310] trunk/Source/WebCore
Revision
200310
Author
[email protected]
Date
2016-05-01 13:58:46 -0700 (Sun, 01 May 2016)

Log Message

Unreviewed attempt to fix Windows build after r200288.

* bindings/scripts/CodeGeneratorJS.pm:
(GetEnumerationImplementationContent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (200309 => 200310)


--- trunk/Source/WebCore/ChangeLog	2016-05-01 20:00:14 UTC (rev 200309)
+++ trunk/Source/WebCore/ChangeLog	2016-05-01 20:58:46 UTC (rev 200310)
@@ -1,5 +1,12 @@
 2016-05-01  Chris Dumez  <[email protected]>
 
+        Unreviewed attempt to fix Windows build after r200288.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GetEnumerationImplementationContent):
+
+2016-05-01  Chris Dumez  <[email protected]>
+
         Unreviewed, rebaseline bindings tests after r200300.
 
         * bindings/scripts/test/JS/JSTestObj.cpp:

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (200309 => 200310)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2016-05-01 20:00:14 UTC (rev 200309)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2016-05-01 20:58:46 UTC (rev 200310)
@@ -872,7 +872,7 @@
         my $index = 0;
         foreach my $value (@{$enumeration->values}) {
             my $enumerationValueName = GetEnumerationValueName($value);
-            $result .= "    static_assert(static_cast<size_t>($className::$enumerationValueName) == $index, \"$className::$enumerationValueName is not $index as expected\");\n";
+            $result .= "    static_assert(static_cast<size_t>(${className}::$enumerationValueName) == $index, \"${className}::$enumerationValueName is not $index as expected\");\n";
             $index++;
         }
         $result .= "    ASSERT(static_cast<size_t>(enumerationValue) < WTF_ARRAY_LENGTH(values));\n";
@@ -896,7 +896,7 @@
             } else {
                 $result .= "    if (stringValue == \"$value\")\n";
             }
-            $result .= "        return $className::$enumerationValueName;\n";
+            $result .= "        return ${className}::${enumerationValueName};\n";
         }
         $result .= "    return Nullopt;\n";
         $result .= "}\n\n";
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to