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

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

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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 | « Source/bindings/v8/V8ErrorHandler.cpp ('k') | Source/bindings/v8/custom/V8EventTargetCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8EventCustom.cpp
diff --git a/Source/bindings/v8/custom/V8EventCustom.cpp b/Source/bindings/v8/custom/V8EventCustom.cpp
index bcfe250b2ab6a23f1554d4369bf16ad3b6427b90..f51c72e8b9f6de34c2b2f10b884464223ead151f 100644
--- a/Source/bindings/v8/custom/V8EventCustom.cpp
+++ b/Source/bindings/v8/custom/V8EventCustom.cpp
@@ -53,7 +53,7 @@ void V8Event::clipboardDataAttributeGetterCustom(v8::Local<v8::String> name, con
}
#define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \
- if (eventNames().interfaceFor##interfaceName == desiredInterface) \
+ if (EventNames::interfaceName == desiredInterface) \
return wrap(static_cast<interfaceName*>(event), creationContext, isolate);
v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext, v8::Isolate *isolate)
@@ -63,7 +63,7 @@ v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext
String desiredInterface = event->interfaceName();
// We need to check Event first to avoid infinite recursion.
- if (eventNames().interfaceForEvent == desiredInterface)
+ if (EventNames::Event == desiredInterface)
return V8Event::createWrapper(event, creationContext, isolate);
EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE)
« no previous file with comments | « Source/bindings/v8/V8ErrorHandler.cpp ('k') | Source/bindings/v8/custom/V8EventTargetCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698