Index: webkit/port/bindings/scripts/CodeGeneratorV8.pm |
=================================================================== |
--- webkit/port/bindings/scripts/CodeGeneratorV8.pm (revision 8350) |
+++ webkit/port/bindings/scripts/CodeGeneratorV8.pm (working copy) |
@@ -262,6 +262,8 @@ |
push(@headerContent, "\n#if ENABLE(SVG)\n"); |
} elsif (IsVideoClassName($className)) { |
push(@headerContent, "\n#if ENABLE(VIDEO)\n"); |
+ } elsif (IsWorkerClassName($className)) { |
+ push(@headerContent, "\n#if ENABLE(WORKERS)\n"); |
} |
push(@headerContent, "\n#ifndef $className" . "_H"); |
@@ -310,6 +312,8 @@ |
push(@headerContent, "\n#endif // ENABLE(SVG)\n"); |
} elsif (IsVideoClassName($className)) { |
push(@headerContent, "\n#endif // ENABLE(VIDEO)\n"); |
+ } elsif (IsWorkerClassName($className)) { |
+ push(@headerContent, "\n#endif // ENABLE(WORKERS)\n"); |
} |
} |
@@ -1000,6 +1004,8 @@ |
push(@implFixedHeader, "#if ENABLE(SVG)\n\n"); |
} elsif (IsVideoClassName($className)) { |
push(@implFixedHeader, "#if ENABLE(VIDEO)\n\n"); |
+ } elsif (IsWorkerClassName($className)) { |
+ push(@implFixedHeader, "#if ENABLE(WORKERS)\n\n"); |
} |
if ($className =~ /^V8SVGAnimated/) { |
@@ -1323,6 +1329,8 @@ |
push(@implContent, "\n#endif // ENABLE(SVG)\n"); |
} elsif (IsVideoClassName($className)) { |
push(@implContent, "\n#endif // ENABLE(VIDEO)\n"); |
+ } elsif (IsWorkerClassName($className)) { |
+ push(@implContent, "\n#endif // ENABLE(WORKERS)\n"); |
} |
} |
@@ -1595,6 +1603,15 @@ |
return 0; |
} |
+sub IsWorkerClassName |
+{ |
+ my $class = shift; |
+ return 1 if $class eq "V8Worker"; |
+ return 1 if $class eq "V8WorkerLocation"; |
+ |
+ return 0; |
+} |
+ |
sub GetNativeType |
{ |
my $type = shift; |