summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-06 12:48:11 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:33:43 +0000
commit7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (patch)
treefa14ba0ca8d2683ba2efdabd246dc9b18a1229c6 /chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h
parent79b4f909db1049fca459c07cca55af56a9b54fe3 (diff)
downloadqtwebengine-chromium-7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3.tar.gz
BASELINE: Update Chromium to 84.0.4147.141
Change-Id: Ib85eb4cfa1cbe2b2b81e5022c8cad5c493969535 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h b/chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h
index 7b9e6756bec..e557ca14b8d 100644
--- a/chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h
+++ b/chromium/third_party/blink/renderer/modules/scheduler/dom_scheduler.h
@@ -27,22 +27,22 @@ class WebSchedulingTaskQueue;
class MODULES_EXPORT DOMScheduler : public ScriptWrappable,
public ExecutionContextLifecycleObserver,
- public Supplement<Document> {
+ public Supplement<LocalDOMWindow> {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(DOMScheduler);
public:
static const char kSupplementName[];
- static DOMScheduler* From(Document&);
+ static DOMScheduler* From(LocalDOMWindow&);
- explicit DOMScheduler(Document*);
+ explicit DOMScheduler(LocalDOMWindow*);
// postTask creates and queues a DOMTask and returns a Promise that will
// resolve when it completes. The task will be scheduled in the queue
// corresponding to the priority in the SchedulerPostTaskOptions, or in a
// queue associated with the given DOMTaskSignal if one is provided. If the
- // underlying context is destroyed, e.g. for detached documents, this will
+ // underlying context is destroyed, e.g. for detached windows, this will
// return a rejected promise.
ScriptPromise postTask(ScriptState*,
V8Function*,
@@ -73,10 +73,10 @@ class MODULES_EXPORT DOMScheduler : public ScriptWrappable,
static constexpr size_t kWebSchedulingPriorityCount =
static_cast<size_t>(WebSchedulingPriority::kLastPriority) + 1;
- void CreateGlobalTaskQueues(Document*);
+ void CreateGlobalTaskQueues(LocalDOMWindow*);
// |global_task_queues_| is initialized with one entry per priority, indexed
- // by priority. This will be empty when the document is detached.
+ // by priority. This will be empty when the window is detached.
Vector<std::unique_ptr<WebSchedulingTaskQueue>, kWebSchedulingPriorityCount>
global_task_queues_;
};