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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 const KURL& ExecutionContext::url() const | 194 const KURL& ExecutionContext::url() const |
195 { | 195 { |
196 return virtualURL(); | 196 return virtualURL(); |
197 } | 197 } |
198 | 198 |
199 KURL ExecutionContext::completeURL(const String& url) const | 199 KURL ExecutionContext::completeURL(const String& url) const |
200 { | 200 { |
201 return virtualCompleteURL(url); | 201 return virtualCompleteURL(url); |
202 } | 202 } |
203 | 203 |
204 bool ExecutionContext::isIteratingOverObservers() const | |
205 { | |
206 return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers(
); | |
207 } | |
208 | |
209 void ExecutionContext::allowWindowInteraction() | 204 void ExecutionContext::allowWindowInteraction() |
210 { | 205 { |
211 ++m_windowInteractionTokens; | 206 ++m_windowInteractionTokens; |
212 } | 207 } |
213 | 208 |
214 void ExecutionContext::consumeWindowInteraction() | 209 void ExecutionContext::consumeWindowInteraction() |
215 { | 210 { |
216 if (m_windowInteractionTokens == 0) | 211 if (m_windowInteractionTokens == 0) |
217 return; | 212 return; |
218 --m_windowInteractionTokens; | 213 --m_windowInteractionTokens; |
(...skipping 11 matching lines...) Expand all Loading... |
230 { | 225 { |
231 #if ENABLE(OILPAN) | 226 #if ENABLE(OILPAN) |
232 visitor->trace(m_pendingExceptions); | 227 visitor->trace(m_pendingExceptions); |
233 visitor->trace(m_publicURLManager); | 228 visitor->trace(m_publicURLManager); |
234 HeapSupplementable<ExecutionContext>::trace(visitor); | 229 HeapSupplementable<ExecutionContext>::trace(visitor); |
235 #endif | 230 #endif |
236 ContextLifecycleNotifier::trace(visitor); | 231 ContextLifecycleNotifier::trace(visitor); |
237 } | 232 } |
238 | 233 |
239 } // namespace blink | 234 } // namespace blink |
OLD | NEW |