Index: Source/bindings/scripts/CodeGeneratorV8.pm |
diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm |
index 6380e0590f54e60d16b9ca2ea77a797af095228f..9c08c557784671b2704f17d06dc81b40893ad7c3 100644 |
--- a/Source/bindings/scripts/CodeGeneratorV8.pm |
+++ b/Source/bindings/scripts/CodeGeneratorV8.pm |
@@ -1847,12 +1847,9 @@ END |
$code .= " transferHiddenDependency(info.Holder(), imp->${attrImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate());\n"; |
} |
AddToImplIncludes("bindings/v8/V8EventListenerList.h"); |
- if ($interfaceName eq "WorkerContext" and $attribute->signature->name eq "onerror") { |
- AddToImplIncludes("bindings/v8/V8WorkerContextErrorHandler.h"); |
- $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8WorkerContextErrorHandler>(value, true)"; |
- } elsif ($interfaceName eq "DOMWindow" and $attribute->signature->name eq "onerror") { |
- AddToImplIncludes("bindings/v8/V8WindowErrorHandler.h"); |
- $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8WindowErrorHandler>(value, true)"; |
+ if (($interfaceName eq "DOMWindow" or $interfaceName eq "WorkerContext") and $attribute->signature->name eq "onerror") { |
haraken
2013/05/20 02:53:09
Another thing I don't understand is why we treat o
|
+ AddToImplIncludes("bindings/v8/V8DOMWindowOrWorkerContextErrorHandler.h"); |
+ $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8DOMWindowOrWorkerContextErrorHandler>(value, true)"; |
} else { |
$code .= " imp->set$implSetterFunctionName(V8EventListenerList::getEventListener(value, true, ListenerFindOrCreate)"; |
} |