| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "bindings/core/dart/DartMutationCallback.h" | |
| 7 | |
| 8 #include "bindings/core/dart/DartMutationObserver.h" | |
| 9 #include "bindings/core/dart/DartMutationRecord.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 void DartMutationCallback::call(const Vector<RefPtr<MutationRecord> >& mutations
, MutationObserver* observer) | |
| 14 { | |
| 15 if (!m_callback.isIsolateAlive()) | |
| 16 return; | |
| 17 | |
| 18 DartIsolateScope scope(m_callback.isolate()); | |
| 19 DartApiScope apiScope; | |
| 20 | |
| 21 Dart_Handle arguments[] = { | |
| 22 DartDOMWrapper::vectorToDart<DartMutationRecord>(mutations), | |
| 23 DartMutationObserver::toDart(observer) | |
| 24 }; | |
| 25 m_callback.handleEvent(2, arguments); | |
| 26 } | |
| 27 | |
| 28 } | |
| OLD | NEW |