| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "bindings/core/v8/V8MutationCallback.h" | 26 #include "bindings/core/v8/V8MutationCallback.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/ScriptController.h" | 28 #include "bindings/core/v8/ScriptController.h" |
| 29 #include "bindings/core/v8/ScriptState.h" | 29 #include "bindings/core/v8/ScriptState.h" |
| 30 #include "bindings/core/v8/V8Binding.h" | 30 #include "bindings/core/v8/V8Binding.h" |
| 31 #include "bindings/core/v8/V8MutationObserver.h" | 31 #include "bindings/core/v8/V8MutationObserver.h" |
| 32 #include "bindings/core/v8/V8MutationRecord.h" | 32 #include "bindings/core/v8/V8MutationRecord.h" |
| 33 #include "bindings/core/v8/V8PrivateProperty.h" | 33 #include "bindings/core/v8/V8PrivateProperty.h" |
| 34 #include "core/dom/ExecutionContext.h" | 34 #include "core/dom/ExecutionContext.h" |
| 35 #include "wtf/Assertions.h" | 35 #include "platform/wtf/Assertions.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 V8MutationCallback::V8MutationCallback(v8::Local<v8::Function> callback, | 39 V8MutationCallback::V8MutationCallback(v8::Local<v8::Function> callback, |
| 40 v8::Local<v8::Object> owner, | 40 v8::Local<v8::Object> owner, |
| 41 ScriptState* scriptState) | 41 ScriptState* scriptState) |
| 42 : m_callback(scriptState->isolate(), this, callback), | 42 : m_callback(scriptState->isolate(), this, callback), |
| 43 m_scriptState(scriptState) { | 43 m_scriptState(scriptState) { |
| 44 V8PrivateProperty::getMutationObserverCallback(scriptState->isolate()) | 44 V8PrivateProperty::getMutationObserverCallback(scriptState->isolate()) |
| 45 .set(owner, callback); | 45 .set(owner, callback); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 DEFINE_TRACE(V8MutationCallback) { | 84 DEFINE_TRACE(V8MutationCallback) { |
| 85 MutationCallback::trace(visitor); | 85 MutationCallback::trace(visitor); |
| 86 } | 86 } |
| 87 | 87 |
| 88 DEFINE_TRACE_WRAPPERS(V8MutationCallback) { | 88 DEFINE_TRACE_WRAPPERS(V8MutationCallback) { |
| 89 visitor->traceWrappers(m_callback.cast<v8::Value>()); | 89 visitor->traceWrappers(m_callback.cast<v8::Value>()); |
| 90 MutationCallback::traceWrappers(visitor); | 90 MutationCallback::traceWrappers(visitor); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |