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

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

Issue 1898653002: Asserts tripped by failing to defer loading. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 void ExecutionContext::suspendActiveDOMObjects() 79 void ExecutionContext::suspendActiveDOMObjects()
80 { 80 {
81 DCHECK(!m_activeDOMObjectsAreSuspended); 81 DCHECK(!m_activeDOMObjectsAreSuspended);
82 notifySuspendingActiveDOMObjects(); 82 notifySuspendingActiveDOMObjects();
83 m_activeDOMObjectsAreSuspended = true; 83 m_activeDOMObjectsAreSuspended = true;
84 } 84 }
85 85
86 void ExecutionContext::resumeActiveDOMObjects() 86 void ExecutionContext::resumeActiveDOMObjects()
87 { 87 {
88 DCHECK(m_activeDOMObjectsAreSuspended); 88 // DCHECK(m_activeDOMObjectsAreSuspended);
89 m_activeDOMObjectsAreSuspended = false; 89 m_activeDOMObjectsAreSuspended = false;
90 notifyResumingActiveDOMObjects(); 90 notifyResumingActiveDOMObjects();
91 } 91 }
92 92
93 void ExecutionContext::stopActiveDOMObjects() 93 void ExecutionContext::stopActiveDOMObjects()
94 { 94 {
95 m_activeDOMObjectsAreStopped = true; 95 m_activeDOMObjectsAreStopped = true;
96 notifyStoppingActiveDOMObjects(); 96 notifyStoppingActiveDOMObjects();
97 } 97 }
98 98
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 DEFINE_TRACE(ExecutionContext) 276 DEFINE_TRACE(ExecutionContext)
277 { 277 {
278 visitor->trace(m_publicURLManager); 278 visitor->trace(m_publicURLManager);
279 ContextLifecycleNotifier::trace(visitor); 279 ContextLifecycleNotifier::trace(visitor);
280 Supplementable<ExecutionContext>::trace(visitor); 280 Supplementable<ExecutionContext>::trace(visitor);
281 } 281 }
282 282
283 } // namespace blink 283 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698