| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index ed97200c0bd3f914a719de441dd56cd59ea1d92c..3d6d0a856b375b79b0b6d9522ad9aae8ae946e84 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -6333,38 +6333,6 @@ void Document::platformColorsChanged() {
|
| styleEngine().platformColorsChanged();
|
| }
|
|
|
| -v8::Local<v8::Object> Document::wrap(v8::Isolate* isolate,
|
| - v8::Local<v8::Object> creationContext) {
|
| - DCHECK(!DOMDataStore::containsWrapper(this, isolate));
|
| -
|
| - const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
|
| -
|
| - if (frame() && frame()->script().initializeMainWorld()) {
|
| - // initializeMainWorld may have created a wrapper for the object, retry from
|
| - // the start.
|
| - v8::Local<v8::Object> wrapper = DOMDataStore::getWrapper(this, isolate);
|
| - if (!wrapper.IsEmpty())
|
| - return wrapper;
|
| - }
|
| -
|
| - v8::Local<v8::Object> wrapper =
|
| - V8DOMWrapper::createWrapper(isolate, creationContext, wrapperType);
|
| - DCHECK(!wrapper.IsEmpty());
|
| - return associateWithWrapper(isolate, wrapperType, wrapper);
|
| -}
|
| -
|
| -v8::Local<v8::Object> Document::associateWithWrapper(
|
| - v8::Isolate* isolate,
|
| - const WrapperTypeInfo* wrapperType,
|
| - v8::Local<v8::Object> wrapper) {
|
| - wrapper = V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
|
| - wrapper);
|
| - DOMWrapperWorld& world = DOMWrapperWorld::current(isolate);
|
| - if (world.isMainWorld() && frame())
|
| - frame()->script().windowProxy(world)->updateDocumentWrapper(wrapper);
|
| - return wrapper;
|
| -}
|
| -
|
| bool Document::isSecureContext(
|
| String& errorMessage,
|
| const SecureContextCheck privilegeContextCheck) const {
|
|
|