| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "bindings/core/v8/ScriptPromiseResolver.h" | 6 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/V8RecursionScope.h" | 8 #include "bindings/core/v8/V8RecursionScope.h" |
| 9 #include "platform/LifecycleObserver.h" | 9 #include "platform/LifecycleObserver.h" |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 // |this| may be deleted here, but it is safe to check |state| because | 103 // |this| may be deleted here, but it is safe to check |state| because |
| 104 // it doesn't depend on |this|. When |this| is deleted, |state| can't be | 104 // it doesn't depend on |this|. When |this| is deleted, |state| can't be |
| 105 // |Resolving| nor |Rejecting| and hence |this->deref()| can't be executed. | 105 // |Resolving| nor |Rejecting| and hence |this->deref()| can't be executed. |
| 106 if (state == Resolving || state == Rejecting) { | 106 if (state == Resolving || state == Rejecting) { |
| 107 // |ref| was called in |resolveOrReject|. | 107 // |ref| was called in |resolveOrReject|. |
| 108 deref(); | 108 deref(); |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 void ScriptPromiseResolver::trace(Visitor* visitor) | 112 DEFINE_TRACE(ScriptPromiseResolver) |
| 113 { | 113 { |
| 114 ActiveDOMObject::trace(visitor); | 114 ActiveDOMObject::trace(visitor); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| OLD | NEW |