OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 { | 79 { |
80 } | 80 } |
81 | 81 |
82 bool ExecutionContext::hasPendingActivity() | 82 bool ExecutionContext::hasPendingActivity() |
83 { | 83 { |
84 return lifecycleNotifier().hasPendingActivity(); | 84 return lifecycleNotifier().hasPendingActivity(); |
85 } | 85 } |
86 | 86 |
87 void ExecutionContext::suspendActiveDOMObjects() | 87 void ExecutionContext::suspendActiveDOMObjects() |
88 { | 88 { |
89 ASSERT(!m_activeDOMObjectsAreSuspended); | |
João Eiras
2014/10/06 12:14:30
This matches the asserts that already exist in Sus
| |
89 lifecycleNotifier().notifySuspendingActiveDOMObjects(); | 90 lifecycleNotifier().notifySuspendingActiveDOMObjects(); |
90 m_activeDOMObjectsAreSuspended = true; | 91 m_activeDOMObjectsAreSuspended = true; |
91 } | 92 } |
92 | 93 |
93 void ExecutionContext::resumeActiveDOMObjects() | 94 void ExecutionContext::resumeActiveDOMObjects() |
94 { | 95 { |
96 ASSERT(m_activeDOMObjectsAreSuspended); | |
95 m_activeDOMObjectsAreSuspended = false; | 97 m_activeDOMObjectsAreSuspended = false; |
96 lifecycleNotifier().notifyResumingActiveDOMObjects(); | 98 lifecycleNotifier().notifyResumingActiveDOMObjects(); |
97 } | 99 } |
98 | 100 |
99 void ExecutionContext::stopActiveDOMObjects() | 101 void ExecutionContext::stopActiveDOMObjects() |
100 { | 102 { |
101 m_activeDOMObjectsAreStopped = true; | 103 m_activeDOMObjectsAreStopped = true; |
102 lifecycleNotifier().notifyStoppingActiveDOMObjects(); | 104 lifecycleNotifier().notifyStoppingActiveDOMObjects(); |
103 } | 105 } |
104 | 106 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 void ExecutionContext::trace(Visitor* visitor) | 269 void ExecutionContext::trace(Visitor* visitor) |
268 { | 270 { |
269 #if ENABLE(OILPAN) | 271 #if ENABLE(OILPAN) |
270 visitor->trace(m_pendingExceptions); | 272 visitor->trace(m_pendingExceptions); |
271 HeapSupplementable<ExecutionContext>::trace(visitor); | 273 HeapSupplementable<ExecutionContext>::trace(visitor); |
272 #endif | 274 #endif |
273 LifecycleContext<ExecutionContext>::trace(visitor); | 275 LifecycleContext<ExecutionContext>::trace(visitor); |
274 } | 276 } |
275 | 277 |
276 } // namespace blink | 278 } // namespace blink |
OLD | NEW |