diff options
-rw-r--r-- | webkit/port/bindings/scripts/CodeGeneratorV8.pm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/webkit/port/bindings/scripts/CodeGeneratorV8.pm b/webkit/port/bindings/scripts/CodeGeneratorV8.pm index 99a95a6..55cb2ce 100644 --- a/webkit/port/bindings/scripts/CodeGeneratorV8.pm +++ b/webkit/port/bindings/scripts/CodeGeneratorV8.pm @@ -177,9 +177,6 @@ sub AddIncludesForType $joinedName = $type; $joinedName =~ s/Abs|Rel//; $implIncludes{"${joinedName}.h"} = 1; - } elsif ($type eq "CSSStyleDeclaration") { - $implIncludes{"CSSStyleDeclaration.h"} = 1; - $implIncludes{"CSSMutableStyleDeclaration.h"} = 1; } else { # default, include the same named file $implIncludes{GetImplementationFileName(${type})} = 1; @@ -196,6 +193,15 @@ sub AddIncludesForType if ($type eq "CanvasGradient" or $type eq "XPathNSResolver") { $implIncludes{"PlatformString.h"} = 1; } + + if ($type eq "CSSStyleDeclaration") { + $implIncludes{"CSSMutableStyleDeclaration.h"} = 1; + } + + if ($type eq "Plugin" or $type eq "PluginArray" or $type eq "MimeTypeArray") { + # So we can get String -> AtomicString conversion for namedItem(). + $implIncludes{"AtomicString.h"} = 1; + } } sub AddIncludesForSVGAnimatedType @@ -1894,10 +1900,6 @@ sub NativeToJSValue AddIncludesForType($type); # $implIncludes{GetImplementationFileName($type)} = 1 unless AvoidInclusionOfType($type); - if ($type eq "CSSStyleDeclaration") { - $implIncludes{"CSSMutableStyleDeclaration.h"} = 1; - } - # special case for non-DOM node interfaces if (IsDOMNodeType($type)) { return "V8Proxy::NodeToV8Object($value)"; |