Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2525313004: binding: Removes Document::wrap that must be equivalent to Node::wrap. (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 32dd75ac6a48326702bd93bdbbb379f886b46b25..2cba2c4c4ff0c2dacc972bb3520daf12eb441cf5 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -6311,38 +6311,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 {

Powered by Google App Engine
This is Rietveld 408576698