Commit 71beed42 authored by ggaren@apple.com's avatar ggaren@apple.com

2009-04-14 Geoffrey Garen <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Nixed some now-defunct autogeneration code.

        * bindings/scripts/CodeGeneratorJS.pm:



git-svn-id: svn://svn.chromium.org/blink/trunk@42534 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 25b2f291
2009-04-14 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
Nixed some now-defunct autogeneration code.
* bindings/scripts/CodeGeneratorJS.pm:
2009-04-14 Eric Carlson <eric.carlson@apple.com> 2009-04-14 Eric Carlson <eric.carlson@apple.com>
Reviewed by Alexey Proskuryakov. Reviewed by Alexey Proskuryakov.
...@@ -1250,12 +1250,6 @@ sub GenerateImplementation ...@@ -1250,12 +1250,6 @@ sub GenerateImplementation
$implIncludes{"JSEventListener.h"} = 1; $implIncludes{"JSEventListener.h"} = 1;
push(@implContent, " UNUSED_PARAM(exec);\n"); push(@implContent, " UNUSED_PARAM(exec);\n");
push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(static_cast<$className*>(thisObject)->impl());\n"); push(@implContent, " $implClassName* imp = static_cast<$implClassName*>(static_cast<$className*>(thisObject)->impl());\n");
my $listenerType;
if ($attribute->signature->extendedAttributes->{"ProtectedListener"}) {
$listenerType = "JSProtectedEventListener";
} else {
$listenerType = "JSEventListener";
}
if ($dataNode->extendedAttributes->{"ExtendsDOMGlobalObject"}) { if ($dataNode->extendedAttributes->{"ExtendsDOMGlobalObject"}) {
push(@implContent, " JSDOMGlobalObject* globalObject = static_cast<$className*>(thisObject);\n"); push(@implContent, " JSDOMGlobalObject* globalObject = static_cast<$className*>(thisObject);\n");
} else { } else {
...@@ -1265,7 +1259,7 @@ sub GenerateImplementation ...@@ -1265,7 +1259,7 @@ sub GenerateImplementation
push(@implContent, " if (!globalObject)\n"); push(@implContent, " if (!globalObject)\n");
push(@implContent, " return;\n"); push(@implContent, " return;\n");
} }
push(@implContent, " imp->set$implSetterFunctionName(globalObject->findOrCreate${listenerType}(value, true));\n"); push(@implContent, " imp->set$implSetterFunctionName(globalObject->findOrCreateJSEventListener(value, true));\n");
} elsif ($attribute->signature->type =~ /Constructor$/) { } elsif ($attribute->signature->type =~ /Constructor$/) {
my $constructorType = $attribute->signature->type; my $constructorType = $attribute->signature->type;
$constructorType =~ s/Constructor$//; $constructorType =~ s/Constructor$//;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment