Index: third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp |
deleted file mode 100644 |
index 044e4a58ebbbb4a1fa36c614431b3234affd4f69..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "bindings/core/v8/ScriptWrappable.h" |
- |
-#include "bindings/core/v8/DOMDataStore.h" |
-#include "bindings/core/v8/ScriptWrappableVisitor.h" |
-#include "bindings/core/v8/V8DOMWrapper.h" |
- |
-namespace blink { |
- |
-struct SameSizeAsScriptWrappable { |
- virtual ~SameSizeAsScriptWrappable() {} |
- v8::Persistent<v8::Object> main_world_wrapper_; |
-}; |
- |
-static_assert(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), |
- "ScriptWrappable should stay small"); |
- |
-v8::Local<v8::Object> ScriptWrappable::Wrap( |
- v8::Isolate* isolate, |
- v8::Local<v8::Object> creation_context) { |
- const WrapperTypeInfo* wrapper_type_info = this->GetWrapperTypeInfo(); |
- |
- DCHECK(!DOMDataStore::ContainsWrapper(this, isolate)); |
- |
- v8::Local<v8::Object> wrapper = |
- V8DOMWrapper::CreateWrapper(isolate, creation_context, wrapper_type_info); |
- DCHECK(!wrapper.IsEmpty()); |
- return AssociateWithWrapper(isolate, wrapper_type_info, wrapper); |
-} |
- |
-v8::Local<v8::Object> ScriptWrappable::AssociateWithWrapper( |
- v8::Isolate* isolate, |
- const WrapperTypeInfo* wrapper_type_info, |
- v8::Local<v8::Object> wrapper) { |
- return V8DOMWrapper::AssociateObjectWithWrapper(isolate, this, |
- wrapper_type_info, wrapper); |
-} |
- |
-void ScriptWrappable::MarkWrapper(const WrapperVisitor* visitor) const { |
- if (ContainsWrapper()) |
- visitor->MarkWrapper(&main_world_wrapper_.As<v8::Value>()); |
-} |
- |
-} // namespace blink |