diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-13 21:52:23 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-13 21:52:23 +0000 |
commit | d6890fac98901cfd564bd87096870ed27285b5fc (patch) | |
tree | 9b8a60b63d17c679ee08ac2259f1cedfc294ae74 /webkit/port/bindings/scripts | |
parent | ee129cd136038d6cfd4ea2b31e84af7245a8b3ea (diff) | |
download | chromium_src-d6890fac98901cfd564bd87096870ed27285b5fc.zip chromium_src-d6890fac98901cfd564bd87096870ed27285b5fc.tar.gz chromium_src-d6890fac98901cfd564bd87096870ed27285b5fc.tar.bz2 |
Unfork Plugin.h, PluginArray.h and MimeTypeArray.h.
Review URL: http://codereview.chromium.org/10872
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/scripts')
-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)"; |