Index: webkit/port/bindings/v8/v8_proxy.cpp |
=================================================================== |
--- webkit/port/bindings/v8/v8_proxy.cpp (revision 8350) |
+++ webkit/port/bindings/v8/v8_proxy.cpp (working copy) |
@@ -192,6 +192,11 @@ |
#include "V8SVGPODTypeWrapper.h" |
#endif // SVG |
+#if ENABLE(WORKERS) |
+#include "Worker.h" |
+#include "WorkerLocation.h" |
+#endif // WORKERS |
+ |
#if ENABLE(XPATH) |
#include "XPathEvaluator.h" |
#endif |
@@ -1772,6 +1777,18 @@ |
break; |
} |
+#if ENABLE(WORKERS) |
+ case V8ClassIndex::WORKER: { |
+ // Reserve one more internal field for keeping event listeners. |
+ v8::Local<v8::ObjectTemplate> instance_template = |
+ desc->InstanceTemplate(); |
+ instance_template->SetInternalFieldCount( |
+ V8Custom::kWorkerInternalFieldCount); |
+ desc->SetCallHandler(USE_CALLBACK(WorkerConstructor)); |
+ break; |
+ } |
+#endif // WORKERS |
+ |
// The following objects are created from JavaScript. |
case V8ClassIndex::DOMPARSER: |
desc->SetCallHandler(USE_CALLBACK(DOMParserConstructor)); |