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

Issue 334253005: Custom Elements: Encapsulates Async and Sync Queues into one class. (Closed)

Created:
6 years, 6 months ago by Hajime Morrita
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Project:
blink
Visibility:
Public.

Description

Custom Elements: Encapsulates Async and Sync Queues into one class. This refactoring encapsulates sync and async microtask queues into CustomElementMicrotaskStepDispatcher class. Also, it renames CustomElementMicrotaskQueue to CustomElementSyncMicrotaskQueue for clarifying the difference from the async queue. This is a preparation for fixing crbug.com/384516 BUG=384516 TEST=none R=dglazkov@chromium.org, dominicc@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176434

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated #

Total comments: 12

Patch Set 3 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -239 lines) Patch
M Source/core/core.gypi View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskDispatcher.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp View 1 2 6 chunks +7 lines, -23 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskQueue.h View 1 1 chunk +0 lines, -79 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskQueue.cpp View 1 1 chunk +0 lines, -118 lines 0 comments Download
A Source/core/dom/custom/CustomElementMicrotaskQueueBase.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A Source/core/dom/custom/CustomElementMicrotaskStepDispatcher.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A Source/core/dom/custom/CustomElementMicrotaskStepDispatcher.cpp View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M Source/core/dom/custom/CustomElementScheduler.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A Source/core/dom/custom/CustomElementSyncMicrotaskQueue.cpp View 1 1 chunk +27 lines, -0 lines 0 comments Download
M Source/core/html/imports/HTMLImportChild.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/imports/HTMLImportLoader.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/imports/HTMLImportLoader.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Hajime Morrita
6 years, 6 months ago (2014-06-16 22:23:15 UTC) #1
dglazkov
I am not super-familiar with these lands of code. Dominic, can I count on your ...
6 years, 6 months ago (2014-06-16 22:46:37 UTC) #2
dominicc (has gone to gerrit)
I don't get the direction yet but this is the first patch I looked at ...
6 years, 6 months ago (2014-06-17 00:29:23 UTC) #3
Hajime Morrita
Thanks for the review Dominic! Please take another look? https://codereview.chromium.org/334253005/diff/1/Source/core/dom/custom/CustomElementMicrotaskQueue.h File Source/core/dom/custom/CustomElementMicrotaskQueue.h (right): https://codereview.chromium.org/334253005/diff/1/Source/core/dom/custom/CustomElementMicrotaskQueue.h#newcode41 Source/core/dom/custom/CustomElementMicrotaskQueue.h:41: ...
6 years, 6 months ago (2014-06-17 17:19:51 UTC) #4
dominicc (has gone to gerrit)
More comments inline. https://codereview.chromium.org/334253005/diff/20001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp File Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp (right): https://codereview.chromium.org/334253005/diff/20001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp#newcode38 Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp:38: m_resolutionAndImports->enqueue(parentLoader, step); I guess if it ...
6 years, 6 months ago (2014-06-18 00:11:28 UTC) #5
Hajime Morrita
PTAL? https://codereview.chromium.org/334253005/diff/20001/Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp File Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp (right): https://codereview.chromium.org/334253005/diff/20001/Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp#newcode22 Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp:22: ASSERT(m_queue->isEmpty() || !hasReenter()); On 2014/06/18 00:11:28, dominicc wrote: ...
6 years, 6 months ago (2014-06-18 00:57:06 UTC) #6
dominicc (has gone to gerrit)
YES! LGTM.
6 years, 6 months ago (2014-06-18 01:04:45 UTC) #7
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-06-18 16:07:24 UTC) #8
Hajime Morrita
On 2014/06/18 01:04:45, dominicc wrote: > YES! LGTM. Thanks you!
6 years, 6 months ago (2014-06-18 16:07:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/334253005/40001
6 years, 6 months ago (2014-06-18 16:08:01 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 16:52:33 UTC) #11
Message was sent while issue was closed.
Change committed as 176434

Powered by Google App Engine
This is Rietveld 408576698