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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 String m_sourceURL; | 65 String m_sourceURL; |
66 RefPtrWillBeMember<ScriptCallStack> m_callStack; | 66 RefPtrWillBeMember<ScriptCallStack> m_callStack; |
67 }; | 67 }; |
68 | 68 |
69 ExecutionContext::ExecutionContext() | 69 ExecutionContext::ExecutionContext() |
70 : m_sandboxFlags(SandboxNone) | 70 : m_sandboxFlags(SandboxNone) |
71 , m_circularSequentialID(0) | 71 , m_circularSequentialID(0) |
72 , m_inDispatchErrorEvent(false) | 72 , m_inDispatchErrorEvent(false) |
73 , m_activeDOMObjectsAreSuspended(false) | 73 , m_activeDOMObjectsAreSuspended(false) |
74 , m_activeDOMObjectsAreStopped(false) | 74 , m_activeDOMObjectsAreStopped(false) |
| 75 , m_inBeforeUnloadEvent(false) |
75 { | 76 { |
76 } | 77 } |
77 | 78 |
78 ExecutionContext::~ExecutionContext() | 79 ExecutionContext::~ExecutionContext() |
79 { | 80 { |
80 } | 81 } |
81 | 82 |
82 bool ExecutionContext::hasPendingActivity() | 83 bool ExecutionContext::hasPendingActivity() |
83 { | 84 { |
84 return lifecycleNotifier().hasPendingActivity(); | 85 return lifecycleNotifier().hasPendingActivity(); |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 void ExecutionContext::trace(Visitor* visitor) | 268 void ExecutionContext::trace(Visitor* visitor) |
268 { | 269 { |
269 #if ENABLE(OILPAN) | 270 #if ENABLE(OILPAN) |
270 visitor->trace(m_pendingExceptions); | 271 visitor->trace(m_pendingExceptions); |
271 HeapSupplementable<ExecutionContext>::trace(visitor); | 272 HeapSupplementable<ExecutionContext>::trace(visitor); |
272 #endif | 273 #endif |
273 LifecycleContext<ExecutionContext>::trace(visitor); | 274 LifecycleContext<ExecutionContext>::trace(visitor); |
274 } | 275 } |
275 | 276 |
276 } // namespace blink | 277 } // namespace blink |
OLD | NEW |