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