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

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

Issue 2387263004: Manually remove many instances of a comma quirk arising from the reformat. (Closed)
Patch Set: merge with master; thakis nit Created 4 years, 2 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) 2013 Google Inc. All Rights Reserved. 2 * Copyright (C) 2013 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 21 matching lines...) Expand all
32 #include "platform/CrossThreadFunctional.h" 32 #include "platform/CrossThreadFunctional.h"
33 #include "public/platform/Platform.h" 33 #include "public/platform/Platform.h"
34 #include "wtf/Assertions.h" 34 #include "wtf/Assertions.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 MainThreadTaskRunner::MainThreadTaskRunner(ExecutionContext* context) 38 MainThreadTaskRunner::MainThreadTaskRunner(ExecutionContext* context)
39 : m_context(context), 39 : m_context(context),
40 m_pendingTasksTimer(this, &MainThreadTaskRunner::pendingTasksTimerFired), 40 m_pendingTasksTimer(this, &MainThreadTaskRunner::pendingTasksTimerFired),
41 m_suspended(false), 41 m_suspended(false),
42 m_weakFactory(this) 42 m_weakFactory(this),
43 // Bind a WeakPtr now to avoid data races creating a WeakPtr inside 43 // Bind a WeakPtr now to avoid data races creating a WeakPtr inside
44 // postTask. 44 // postTask.
45 ,
46 m_weakPtr(m_weakFactory.createWeakPtr()) {} 45 m_weakPtr(m_weakFactory.createWeakPtr()) {}
47 46
48 MainThreadTaskRunner::~MainThreadTaskRunner() {} 47 MainThreadTaskRunner::~MainThreadTaskRunner() {}
49 48
50 void MainThreadTaskRunner::postTaskInternal( 49 void MainThreadTaskRunner::postTaskInternal(
51 const WebTraceLocation& location, 50 const WebTraceLocation& location,
52 std::unique_ptr<ExecutionContextTask> task, 51 std::unique_ptr<ExecutionContextTask> task,
53 bool isInspectorTask, 52 bool isInspectorTask,
54 bool instrumenting) { 53 bool instrumenting) {
55 Platform::current()->mainThread()->getWebTaskRunner()->postTask( 54 Platform::current()->mainThread()->getWebTaskRunner()->postTask(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::move(m_pendingTasks[0].first); 117 std::move(m_pendingTasks[0].first);
119 const bool instrumenting = m_pendingTasks[0].second; 118 const bool instrumenting = m_pendingTasks[0].second;
120 m_pendingTasks.remove(0); 119 m_pendingTasks.remove(0);
121 InspectorInstrumentation::AsyncTask asyncTask(m_context, task.get(), 120 InspectorInstrumentation::AsyncTask asyncTask(m_context, task.get(),
122 instrumenting); 121 instrumenting);
123 task->performTask(m_context); 122 task->performTask(m_context);
124 } 123 }
125 } 124 }
126 125
127 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698