| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
|
| similarity index 50%
|
| copy from third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp
|
| copy to third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
|
| index 25f583f867da6dad5b646ec67e8165c19984a337..5fe88912435ea16a6d29014053d7e8b0b8b01463 100644
|
| --- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
|
| @@ -2,21 +2,18 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "bindings/modules/v8/V8WebGLRenderingContext.h"
|
| +#include "bindings/core/v8/V8MojoWatcher.h"
|
|
|
| -#include "modules/webgl/WebGLRenderingContextBase.h"
|
| -
|
| -using namespace WTF;
|
| +#include "bindings/core/v8/MojoWatchCallback.h"
|
|
|
| namespace blink {
|
|
|
| -void V8WebGLRenderingContext::visitDOMWrapperCustom(
|
| +void V8MojoWatcher::visitDOMWrapperCustom(
|
| v8::Isolate* isolate,
|
| ScriptWrappable* scriptWrappable,
|
| const v8::Persistent<v8::Object>& wrapper) {
|
| - WebGLRenderingContext* impl =
|
| - scriptWrappable->toImpl<WebGLRenderingContext>();
|
| - impl->visitChildDOMWrappers(isolate, wrapper);
|
| + MojoWatcher* watcher = scriptWrappable->toImpl<MojoWatcher>();
|
| + watcher->m_callback->setWrapperReference(isolate, wrapper);
|
| }
|
|
|
| } // namespace blink
|
|
|