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

Issue 2688473005: Replace Document::postTask with WebTaskRunner::postTask (Closed)

Created:
3 years, 10 months ago by yuryu
Modified:
3 years, 10 months ago
Reviewers:
haraken, nhiroki, tzik
CC:
chromium-reviews, blink-reviews-html_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Document::postTask with WebTaskRunner::postTask Document::postTask is deprecated in favor of WebTaskRunner::postTask. This patch removes occurrences of postTask invocations from Document type instances. BUG=625927 Review-Url: https://codereview.chromium.org/2688473005 Cr-Commit-Position: refs/heads/master@{#450283} Committed: https://chromium.googlesource.com/chromium/src/+/0c0fbcfa235ac535ef2b82690bb3619deee6b035

Patch Set 1 #

Total comments: 4

Patch Set 2 : Null-check context in task handlers #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : make document persistent for console messages #

Patch Set 5 : add a comment #

Patch Set 6 : remove extra null-check: context on addConsoleMessage is now persistent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -33 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 3 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/SearchInputType.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (18 generated)
yuryu
3 years, 10 months ago (2017-02-09 12:49:23 UTC) #6
tzik
https://codereview.chromium.org/2688473005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode388 third_party/WebKit/Source/core/dom/Document.cpp:388: static void runAutofocusTask(ExecutionContext* context) { null check for |context| ...
3 years, 10 months ago (2017-02-09 23:50:20 UTC) #7
yuryu
tzik, I added null-checks. There is an additional hunk that only appears in a delta ...
3 years, 10 months ago (2017-02-10 06:29:32 UTC) #8
yuryu
https://codereview.chromium.org/2688473005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode388 third_party/WebKit/Source/core/dom/Document.cpp:388: static void runAutofocusTask(ExecutionContext* context) { On 2017/02/09 23:50:20, tzik ...
3 years, 10 months ago (2017-02-13 03:33:22 UTC) #9
tzik
lgtm
3 years, 10 months ago (2017-02-13 06:20:38 UTC) #10
yuryu
haraken, can you take a look? thanks.
3 years, 10 months ago (2017-02-13 06:37:32 UTC) #12
nhiroki
lgtm. Can you update/remove the prefix on the CL subject and description?
3 years, 10 months ago (2017-02-13 06:42:07 UTC) #13
haraken
LGTM with comments. https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5734 third_party/WebKit/Source/core/dom/Document.cpp:5734: wrapCrossThreadWeakPersistent(this))); I guess we should use ...
3 years, 10 months ago (2017-02-13 06:43:52 UTC) #14
tzik
https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6323 third_party/WebKit/Source/core/dom/Document.cpp:6323: WTF::bind(&runAutofocusTask, wrapWeakPersistent(this))); On 2017/02/13 06:43:52, haraken wrote: > > ...
3 years, 10 months ago (2017-02-13 06:56:33 UTC) #15
haraken
https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6323 third_party/WebKit/Source/core/dom/Document.cpp:6323: WTF::bind(&runAutofocusTask, wrapWeakPersistent(this))); On 2017/02/13 06:56:33, tzik wrote: > On ...
3 years, 10 months ago (2017-02-13 06:58:35 UTC) #16
tzik
https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6323 third_party/WebKit/Source/core/dom/Document.cpp:6323: WTF::bind(&runAutofocusTask, wrapWeakPersistent(this))); On 2017/02/13 06:58:35, haraken wrote: > On ...
3 years, 10 months ago (2017-02-13 08:58:53 UTC) #18
haraken
On 2017/02/13 08:58:53, tzik wrote: > https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6323 > ...
3 years, 10 months ago (2017-02-13 09:00:01 UTC) #19
yuryu
https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5734 third_party/WebKit/Source/core/dom/Document.cpp:5734: wrapCrossThreadWeakPersistent(this))); On 2017/02/13 06:43:51, haraken wrote: > > I ...
3 years, 10 months ago (2017-02-13 09:14:04 UTC) #20
haraken
On 2017/02/13 09:14:04, yuryu wrote: > https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5734 > ...
3 years, 10 months ago (2017-02-13 09:15:23 UTC) #21
yuryu
https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2688473005/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6323 third_party/WebKit/Source/core/dom/Document.cpp:6323: WTF::bind(&runAutofocusTask, wrapWeakPersistent(this))); On 2017/02/13 09:14:04, yuryu wrote: > Do ...
3 years, 10 months ago (2017-02-13 09:21:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2688473005/80001
3 years, 10 months ago (2017-02-13 09:23:16 UTC) #25
yuryu
I forgot to remove a null-check in runAddConsoleMessageTask after making its context persistent. Can you ...
3 years, 10 months ago (2017-02-13 10:35:32 UTC) #27
tzik
lgtm
3 years, 10 months ago (2017-02-14 06:49:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2688473005/100001
3 years, 10 months ago (2017-02-14 06:54:06 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 06:58:40 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/0c0fbcfa235ac535ef2b82690bb3...

Powered by Google App Engine
This is Rietveld 408576698