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

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

Issue 2108033005: Specify WTF:: prefix for bind() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | 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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 case IN_ORDER_EXECUTION: 60 case IN_ORDER_EXECUTION:
61 m_pendingInOrderScripts.append(scriptLoader); 61 m_pendingInOrderScripts.append(scriptLoader);
62 m_numberOfInOrderScriptsWithPendingNotification++; 62 m_numberOfInOrderScriptsWithPendingNotification++;
63 break; 63 break;
64 } 64 }
65 } 65 }
66 66
67 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation) 67 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation)
68 { 68 {
69 m_taskRunner->postTask(webTraceLocation, bind(&ScriptRunner::executeTask, wr apWeakPersistent(this))); 69 m_taskRunner->postTask(webTraceLocation, WTF::bind(&ScriptRunner::executeTas k, wrapWeakPersistent(this)));
70 } 70 }
71 71
72 void ScriptRunner::suspend() 72 void ScriptRunner::suspend()
73 { 73 {
74 #ifndef NDEBUG 74 #ifndef NDEBUG
75 m_hasEverBeenSuspended = true; 75 m_hasEverBeenSuspended = true;
76 #endif 76 #endif
77 77
78 m_isSuspended = true; 78 m_isSuspended = true;
79 } 79 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 DEFINE_TRACE(ScriptRunner) 236 DEFINE_TRACE(ScriptRunner)
237 { 237 {
238 visitor->trace(m_document); 238 visitor->trace(m_document);
239 visitor->trace(m_pendingInOrderScripts); 239 visitor->trace(m_pendingInOrderScripts);
240 visitor->trace(m_pendingAsyncScripts); 240 visitor->trace(m_pendingAsyncScripts);
241 visitor->trace(m_asyncScriptsToExecuteSoon); 241 visitor->trace(m_asyncScriptsToExecuteSoon);
242 visitor->trace(m_inOrderScriptsToExecuteSoon); 242 visitor->trace(m_inOrderScriptsToExecuteSoon);
243 } 243 }
244 244
245 } // namespace blink 245 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698