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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2583003002: Specify TaskType of posted Task explicitly in Document (2) (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index a8551c088d591a4b9c6e1a032ff699b959a36993..9f1ae4c70975f31154c3fbf5c0e294f9113e6976 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5742,10 +5742,10 @@ static void runAddConsoleMessageTask(MessageSource source,
void Document::addConsoleMessage(ConsoleMessage* consoleMessage) {
if (!isContextThread()) {
- postTask(BLINK_FROM_HERE, createCrossThreadTask(&runAddConsoleMessageTask,
- consoleMessage->source(),
- consoleMessage->level(),
- consoleMessage->message()));
+ postTask(TaskType::Unthrottled, BLINK_FROM_HERE,
+ createCrossThreadTask(
+ &runAddConsoleMessageTask, consoleMessage->source(),
+ consoleMessage->level(), consoleMessage->message()));
return;
}
@@ -6316,7 +6316,8 @@ void Document::setAutofocusElement(Element* element) {
m_hasAutofocused = true;
DCHECK(!m_autofocusElement);
m_autofocusElement = element;
- postTask(BLINK_FROM_HERE, createSameThreadTask(&runAutofocusTask));
+ postTask(TaskType::UserInteraction, BLINK_FROM_HERE,
+ createSameThreadTask(&runAutofocusTask));
}
Element* Document::activeElement() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698