| 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 11 matching lines...) Expand all Loading... |
| 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 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/V8BindingForCore.h" | 29 #include "bindings/core/v8/V8BindingForCore.h" |
| 30 #include "bindings/core/v8/V8MutationObserver.h" | 30 #include "bindings/core/v8/V8MutationObserver.h" |
| 31 #include "bindings/core/v8/V8MutationRecord.h" | 31 #include "bindings/core/v8/V8MutationRecord.h" |
| 32 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 33 #include "core/dom/ExecutionContext.h" | 32 #include "core/dom/ExecutionContext.h" |
| 34 #include "platform/bindings/ScriptState.h" | 33 #include "platform/bindings/ScriptState.h" |
| 34 #include "platform/bindings/V8PrivateProperty.h" |
| 35 #include "platform/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* script_state) | 41 ScriptState* script_state) |
| 42 : callback_(script_state->GetIsolate(), this, callback), | 42 : callback_(script_state->GetIsolate(), this, callback), |
| 43 script_state_(script_state) { | 43 script_state_(script_state) { |
| 44 V8PrivateProperty::GetMutationObserverCallback(script_state->GetIsolate()) | 44 V8PrivateProperty::GetMutationObserverCallback(script_state->GetIsolate()) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 DEFINE_TRACE(V8MutationCallback) { | 85 DEFINE_TRACE(V8MutationCallback) { |
| 86 MutationCallback::Trace(visitor); | 86 MutationCallback::Trace(visitor); |
| 87 } | 87 } |
| 88 | 88 |
| 89 DEFINE_TRACE_WRAPPERS(V8MutationCallback) { | 89 DEFINE_TRACE_WRAPPERS(V8MutationCallback) { |
| 90 visitor->TraceWrappers(callback_.Cast<v8::Value>()); | 90 visitor->TraceWrappers(callback_.Cast<v8::Value>()); |
| 91 MutationCallback::TraceWrappers(visitor); | 91 MutationCallback::TraceWrappers(visitor); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |