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

Unified Diff: Source/core/html/parser/HTMLParserScheduler.cpp

Issue 937883003: Rename CancellableTaskFactory::task() for clarity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/platform/scheduler/CancellableTaskFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLParserScheduler.cpp
diff --git a/Source/core/html/parser/HTMLParserScheduler.cpp b/Source/core/html/parser/HTMLParserScheduler.cpp
index 6af8b8c7366eae645c55d5331fb1ebc4d6a8fd4d..4be8f609550fe6655d561ef31d7c409f0d16e5c5 100644
--- a/Source/core/html/parser/HTMLParserScheduler.cpp
+++ b/Source/core/html/parser/HTMLParserScheduler.cpp
@@ -96,7 +96,8 @@ HTMLParserScheduler::~HTMLParserScheduler()
void HTMLParserScheduler::scheduleForResume()
{
ASSERT(!m_isSuspendedWithActiveTimer);
- Platform::current()->currentThread()->scheduler()->postLoadingTask(FROM_HERE, m_cancellableContinueParse.task());
+ Platform::current()->currentThread()->scheduler()->postLoadingTask(
+ FROM_HERE, m_cancellableContinueParse.cancelAndCreate());
}
void HTMLParserScheduler::suspend()
@@ -115,7 +116,8 @@ void HTMLParserScheduler::resume()
return;
m_isSuspendedWithActiveTimer = false;
- Platform::current()->currentThread()->scheduler()->postLoadingTask(FROM_HERE, m_cancellableContinueParse.task());
+ Platform::current()->currentThread()->scheduler()->postLoadingTask(
+ FROM_HERE, m_cancellableContinueParse.cancelAndCreate());
}
inline bool HTMLParserScheduler::shouldYield(const SpeculationsPumpSession& session, bool startingScript) const
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/platform/scheduler/CancellableTaskFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698