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

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

Issue 2726593002: Use mayNotBeMainThread() for wrapper optimization (Closed)
Patch Set: Renaming + move decrement to destructor Created 3 years, 9 months 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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 94a3878d0e85e4865273bde966557d3f06412b1c..05698627507547b6f2bd2dc9db81cd48b675d155 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2524,27 +2524,6 @@ unsigned Node::lengthOfContents() const {
return 0;
}
-DISABLE_CFI_PERF
-v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate,
- v8::Local<v8::Object> creationContext) {
- DCHECK(!DOMDataStore::containsWrapper(this, isolate));
-
- const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
-
- v8::Local<v8::Object> wrapper =
- V8DOMWrapper::createWrapper(isolate, creationContext, wrapperType);
- DCHECK(!wrapper.IsEmpty());
- return associateWithWrapper(isolate, wrapperType, wrapper);
-}
-
-v8::Local<v8::Object> Node::associateWithWrapper(
- v8::Isolate* isolate,
- const WrapperTypeInfo* wrapperType,
- v8::Local<v8::Object> wrapper) {
- return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
- wrapper);
-}
-
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698