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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp

Issue 2003033004: Split custom element script use and move it into bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing CORE_EXPORT header. Created 4 years, 7 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/bindings/core/v8/V8PerContextData.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp
index 4bf774cded9550a56b8509f51c91c8d6d8c21853..ad65abcd96b2acd4a0a63a68dc9b30726793a037 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp
@@ -145,9 +145,11 @@ v8::Local<v8::Object> V8PerContextData::prototypeForType(const WrapperTypeInfo*
return prototypeValue.As<v8::Object>();
}
-void V8PerContextData::addCustomElementBinding(PassOwnPtr<V0CustomElementBinding> binding)
+V8CustomElementPerContextData* V8PerContextData::customElements()
{
- m_customElementBindings.append(std::move(binding));
+ if (!m_customElements.get())
+ m_customElements = new V8CustomElementPerContextData();
+ return m_customElements;
}
v8::Local<v8::Value> V8PerContextData::compiledPrivateScript(String className)

Powered by Google App Engine
This is Rietveld 408576698