| Index: third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
|
| index 48f58f8253868f510ed4bb7c7cf90e3a4ac62131..55719983cdee79e401b0e91401cb498f910475d0 100644
|
| --- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
|
| @@ -43,4 +43,14 @@ WebTaskRunner* TaskRunnerHelper::getLoadingTaskRunner(Document* document)
|
| return getLoadingTaskRunner(document ? document->frame() : nullptr);
|
| }
|
|
|
| +WebTaskRunner* TaskRunnerHelper::getUnthrottledTaskRunner(ExecutionContext* executionContext)
|
| +{
|
| + return getUnthrottledTaskRunner(executionContext && executionContext->isDocument() ? static_cast<Document*>(executionContext) : nullptr);
|
| +}
|
| +
|
| +WebTaskRunner* TaskRunnerHelper::getUnthrottledTaskRunner(ScriptState* scriptState)
|
| +{
|
| + return getUnthrottledTaskRunner(scriptState ? scriptState->getExecutionContext() : nullptr);
|
| +}
|
| +
|
| } // namespace blink
|
|
|