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

Unified Diff: Source/bindings/core/v8/custom/V8EventCustom.cpp

Issue 424813007: Simplify V8 wrapper generation for Event objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak comment Created 6 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
« no previous file with comments | « no previous file | Source/bindings/modules/v8/ModuleBindingsInitializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/custom/V8EventCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8EventCustom.cpp b/Source/bindings/core/v8/custom/V8EventCustom.cpp
index ae799e486f876652be3ea9b061bc644638520848..6b6bfd6654328d846cd515759117fc9608f83b27 100644
--- a/Source/bindings/core/v8/custom/V8EventCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8EventCustom.cpp
@@ -66,12 +66,9 @@ v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext
if (EventNames::Event == desiredInterface)
return V8Event::createWrapper(event, creationContext, isolate);
- EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE)
+ EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE);
- v8::Handle<v8::Object> wrapper = ModuleProxy::moduleProxy().wrapForEvent(event, creationContext, isolate);
- if (!wrapper.IsEmpty())
- return wrapper;
- return V8Event::createWrapper(event, creationContext, isolate);
+ return ModuleProxy::moduleProxy().wrapForEvent(event, creationContext, isolate);
}
} // namespace blink
« no previous file with comments | « no previous file | Source/bindings/modules/v8/ModuleBindingsInitializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698