Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: Source/core/dom/ExecutionContext.cpp

Issue 1009623002: Remove ExecutionContext::lifecycleNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698