Index: WebCore/bindings/v8/V8Index.h |
diff --git a/WebCore/bindings/v8/V8Index.h b/WebCore/bindings/v8/V8Index.h |
index 3cf49574240b202e21bedd5f46ca77acc58d0e6e..77bc445061370bac80984f66d1e523d522b91a8e 100644 |
--- a/WebCore/bindings/v8/V8Index.h |
+++ b/WebCore/bindings/v8/V8Index.h |
@@ -282,6 +282,13 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)(); |
#endif // SVG |
+#if ENABLE(WEB_SOCKETS) |
+#define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ |
+ V(WEBSOCKET, WebSocket) |
+#else |
+#define WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
+#endif |
+ |
// ACTIVE_DOM_OBJECT_TYPES are DOM_OBJECT_TYPES that need special treatement |
// during GC. |
#define ACTIVE_DOM_OBJECT_TYPES(V) \ |
@@ -289,6 +296,7 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)(); |
V(XMLHTTPREQUEST, XMLHttpRequest) \ |
WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) \ |
SHARED_WORKER_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
+ WEBSOCKET_ACTIVE_OBJECT_WRAPPER_TYPES(V) |
// NOTE: DOM_OBJECT_TYPES is split into two halves because |
// Visual Studio's Intellinonsense crashes when macros get |