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

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

Issue 1923993002: Revert of Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 30 matching lines...) Expand all
41 , m_taskRunner(Platform::current()->currentThread()->scheduler()->loadingTas kRunner()) 41 , m_taskRunner(Platform::current()->currentThread()->scheduler()->loadingTas kRunner())
42 , m_numberOfInOrderScriptsWithPendingNotification(0) 42 , m_numberOfInOrderScriptsWithPendingNotification(0)
43 , m_isSuspended(false) 43 , m_isSuspended(false)
44 { 44 {
45 DCHECK(document); 45 DCHECK(document);
46 #ifndef NDEBUG 46 #ifndef NDEBUG
47 m_hasEverBeenSuspended = false; 47 m_hasEverBeenSuspended = false;
48 #endif 48 #endif
49 } 49 }
50 50
51 ScriptRunner::~ScriptRunner()
52 {
53 }
54
51 void ScriptRunner::queueScriptForExecution(ScriptLoader* scriptLoader, Execution Type executionType) 55 void ScriptRunner::queueScriptForExecution(ScriptLoader* scriptLoader, Execution Type executionType)
52 { 56 {
53 DCHECK(scriptLoader); 57 DCHECK(scriptLoader);
54 m_document->incrementLoadEventDelayCount(); 58 m_document->incrementLoadEventDelayCount();
55 switch (executionType) { 59 switch (executionType) {
56 case ASYNC_EXECUTION: 60 case ASYNC_EXECUTION:
57 m_pendingAsyncScripts.add(scriptLoader); 61 m_pendingAsyncScripts.add(scriptLoader);
58 break; 62 break;
59 63
60 case IN_ORDER_EXECUTION: 64 case IN_ORDER_EXECUTION:
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 DEFINE_TRACE(ScriptRunner) 240 DEFINE_TRACE(ScriptRunner)
237 { 241 {
238 visitor->trace(m_document); 242 visitor->trace(m_document);
239 visitor->trace(m_pendingInOrderScripts); 243 visitor->trace(m_pendingInOrderScripts);
240 visitor->trace(m_pendingAsyncScripts); 244 visitor->trace(m_pendingAsyncScripts);
241 visitor->trace(m_asyncScriptsToExecuteSoon); 245 visitor->trace(m_asyncScriptsToExecuteSoon);
242 visitor->trace(m_inOrderScriptsToExecuteSoon); 246 visitor->trace(m_inOrderScriptsToExecuteSoon);
243 } 247 }
244 248
245 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698