Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: Source/bindings/scripts/deprecated_code_generator_v8.pm

Issue 18539006: Have Node inherit EventTarget interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/deprecated_code_generator_v8.pm
diff --git a/Source/bindings/scripts/deprecated_code_generator_v8.pm b/Source/bindings/scripts/deprecated_code_generator_v8.pm
index 5ab2224c012ed97f12a06a6106bd36cc9bd9696f..61b92003d0a457ada5e8093293c6537144c47e71 100644
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm
@@ -2191,13 +2191,8 @@ sub GenerateFunction
if (listener) {
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, stringResource, args[0]);
impl->${implName}(stringResource, listener${passRefPtrHandling}, args[2]->BooleanValue());
-END
- if (!InheritsInterface($interface, "Node")) {
- $code .= <<END;
- ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${v8ClassName}::eventListenerCacheIndex, args.GetIsolate());
-END
- }
- $code .= <<END;
+ if (!impl->toNode())
+ ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${v8ClassName}::eventListenerCacheIndex, args.GetIsolate());
}
}
« no previous file with comments | « LayoutTests/webexposed/event-target-in-prototype-expected.txt ('k') | Source/bindings/tests/idls/TestNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698