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

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

Issue 1952893003: Implement custom element construction and some 'define' checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use DCHECK, revert RuntimeEnabledFeatures.in. 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/custom/V8CustomElementsRegistryCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8CustomElementsRegistryCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8CustomElementsRegistryCustom.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..6a5c4c01b07c24f85f631baf680d7c7b16d1f9d9
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8CustomElementsRegistryCustom.cpp
@@ -0,0 +1,22 @@
+// Copyright 2016 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/V8CustomElementsRegistry.h"
+
+#include "core/dom/custom/CustomElementsRegistry.h"
+#include "v8.h"
+
+namespace blink {
+
+void V8CustomElementsRegistry::visitDOMWrapper(
+ v8::Isolate* isolate,
+ ScriptWrappable* wrappable,
+ const v8::Persistent<v8::Object>& wrapper)
+{
+ CustomElementsRegistry* registry =
+ wrappable->toImpl<CustomElementsRegistry>();
+ registry->setWrapperReferences(isolate, wrapper);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698