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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style Created 4 years, 3 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/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..773f9f3a3d8be9086626a80df7682596d8bc7229
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGL2RenderingContextCustom.cpp
@@ -0,0 +1,19 @@
+// 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/modules/v8/V8WebGL2RenderingContext.h"
+
+#include "modules/webgl/WebGL2RenderingContextBase.h"
+
+using namespace WTF;
+
+namespace blink {
+
+void V8WebGL2RenderingContext::visitDOMWrapperCustom(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)
+{
+ WebGL2RenderingContext* impl = scriptWrappable->toImpl<WebGL2RenderingContext>();
+ impl->visitChildDOMWrappers(isolate, wrapper);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698