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

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

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment 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
55 void ScriptRunner::queueScriptForExecution(ScriptLoader* scriptLoader, Execution Type executionType) 51 void ScriptRunner::queueScriptForExecution(ScriptLoader* scriptLoader, Execution Type executionType)
56 { 52 {
57 DCHECK(scriptLoader); 53 DCHECK(scriptLoader);
58 m_document->incrementLoadEventDelayCount(); 54 m_document->incrementLoadEventDelayCount();
59 switch (executionType) { 55 switch (executionType) {
60 case ASYNC_EXECUTION: 56 case ASYNC_EXECUTION:
61 m_pendingAsyncScripts.add(scriptLoader); 57 m_pendingAsyncScripts.add(scriptLoader);
62 break; 58 break;
63 59
64 case IN_ORDER_EXECUTION: 60 case IN_ORDER_EXECUTION:
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 DEFINE_TRACE(ScriptRunner) 236 DEFINE_TRACE(ScriptRunner)
241 { 237 {
242 visitor->trace(m_document); 238 visitor->trace(m_document);
243 visitor->trace(m_pendingInOrderScripts); 239 visitor->trace(m_pendingInOrderScripts);
244 visitor->trace(m_pendingAsyncScripts); 240 visitor->trace(m_pendingAsyncScripts);
245 visitor->trace(m_asyncScriptsToExecuteSoon); 241 visitor->trace(m_asyncScriptsToExecuteSoon);
246 visitor->trace(m_inOrderScriptsToExecuteSoon); 242 visitor->trace(m_inOrderScriptsToExecuteSoon);
247 } 243 }
248 244
249 } // namespace blink 245 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698