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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptRunner.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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 77 {
78 #ifndef NDEBUG 78 #ifndef NDEBUG
79 m_hasEverBeenSuspended = true; 79 m_hasEverBeenSuspended = true;
80 #endif 80 #endif
81 81
82 m_isSuspended = true; 82 m_isSuspended = true;
83 } 83 }
84 84
85 void ScriptRunner::resume() 85 void ScriptRunner::resume()
86 { 86 {
87 DCHECK(m_isSuspended); 87 // DCHECK(m_isSuspended);
88 88
89 m_isSuspended = false; 89 m_isSuspended = false;
90 90
91 for (size_t i = 0; i < m_asyncScriptsToExecuteSoon.size(); ++i) { 91 for (size_t i = 0; i < m_asyncScriptsToExecuteSoon.size(); ++i) {
92 postTask(BLINK_FROM_HERE); 92 postTask(BLINK_FROM_HERE);
93 } 93 }
94 for (size_t i = 0; i < m_inOrderScriptsToExecuteSoon.size(); ++i) { 94 for (size_t i = 0; i < m_inOrderScriptsToExecuteSoon.size(); ++i) {
95 postTask(BLINK_FROM_HERE); 95 postTask(BLINK_FROM_HERE);
96 } 96 }
97 } 97 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 DEFINE_TRACE(ScriptRunner) 240 DEFINE_TRACE(ScriptRunner)
241 { 241 {
242 visitor->trace(m_document); 242 visitor->trace(m_document);
243 visitor->trace(m_pendingInOrderScripts); 243 visitor->trace(m_pendingInOrderScripts);
244 visitor->trace(m_pendingAsyncScripts); 244 visitor->trace(m_pendingAsyncScripts);
245 visitor->trace(m_asyncScriptsToExecuteSoon); 245 visitor->trace(m_asyncScriptsToExecuteSoon);
246 visitor->trace(m_inOrderScriptsToExecuteSoon); 246 visitor->trace(m_inOrderScriptsToExecuteSoon);
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp ('k') | third_party/WebKit/Source/core/frame/SuspendableTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698