Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / workers / WorkerLocation.h
index 2dc9e38..1bc902d 100644 (file)
@@ -39,6 +39,7 @@
 namespace blink {
 
 class WorkerLocation FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
+    DEFINE_WRAPPERTYPEINFO();
 public:
     static PassRefPtrWillBeRawPtr<WorkerLocation> create(const KURL& url)
     {
@@ -55,10 +56,8 @@ public:
     void trace(Visitor*) { }
 
 private:
-    explicit WorkerLocation(const KURL& url) : m_url(url)
-    {
-        ScriptWrappable::init(this);
-    }
+    explicit WorkerLocation(const KURL& url)
+        : m_url(url) { }
 
     KURL m_url;
 };