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

Issue 288323004: HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ (Closed)

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

Description

HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ This is a revision of r173794, which introduced extra complexity to CustomElementMicrotaskStep classes. This change moves the responsibility that introduces the complexity to HTMLImportChild. This localizes the tricky part in the single class and helps overall code sanity. TEST=no BUG=371654 R=dominicc@chromium.org, dglazkov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175007

Patch Set 1 #

Total comments: 1

Patch Set 2 : Renamed to isWaitingForCustomElementMicrosteps() #

Total comments: 1

Patch Set 3 : Switched to two-queue approach #

Total comments: 10

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : Fixed GN build #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -128 lines) Patch
M LayoutTests/http/tests/htmlimports/import-custom-element-order.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h View 1 2 3 4 5 6 2 chunks +13 lines, -12 lines 0 comments Download
A + Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.cpp View 1 2 3 4 5 6 2 chunks +16 lines, -13 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskDispatcher.h View 1 2 3 4 5 6 5 chunks +9 lines, -3 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp View 1 2 3 4 5 6 5 chunks +34 lines, -8 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -19 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskQueue.h View 1 2 3 4 5 6 1 chunk +19 lines, -13 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskQueue.cpp View 1 2 3 4 5 6 4 chunks +24 lines, -39 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskResolutionStep.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskResolutionStep.cpp View 1 2 3 4 5 6 1 chunk +1 line, -6 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskStep.h View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/dom/custom/CustomElementScheduler.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M Source/core/html/imports/HTMLImportChild.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Hajime Morrita
Dominic: PTAL? This is a follow up for https://codereview.chromium.org/272243004. If this looks good, I'll revert ...
6 years, 7 months ago (2014-05-16 10:40:24 UTC) #1
dglazkov
I am going to try an grok this machinery so that I can make more ...
6 years, 7 months ago (2014-05-16 16:10:49 UTC) #2
Hajime Morrita
On 2014/05/16 16:10:49, dglazkov wrote: > I am going to try an grok this machinery ...
6 years, 7 months ago (2014-05-16 17:28:06 UTC) #3
Hajime Morrita
Dominic: Ping?
6 years, 7 months ago (2014-05-19 20:58:08 UTC) #4
dominicc (has gone to gerrit)
QQ inline. https://codereview.chromium.org/288323004/diff/20001/Source/core/html/imports/HTMLImportChild.cpp File Source/core/html/imports/HTMLImportChild.cpp (right): https://codereview.chromium.org/288323004/diff/20001/Source/core/html/imports/HTMLImportChild.cpp#newcode221 Source/core/html/imports/HTMLImportChild.cpp:221: return ignorableStepCount < m_loader->microtaskQueue()->size(); Wrote a huge ...
6 years, 7 months ago (2014-05-23 00:29:24 UTC) #5
Hajime Morrita
Hi Dominic, Thanks for the review! On 2014/05/23 00:29:24, dominicc wrote: > The localization is ...
6 years, 7 months ago (2014-05-23 00:38:49 UTC) #6
dominicc (has gone to gerrit)
On 2014/05/23 00:38:49, morrita1 wrote: > They always do. Currently CEMT is the only way ...
6 years, 7 months ago (2014-05-23 01:23:39 UTC) #7
Hajime Morrita
PTAL? I switched to double-queue approach and it seems promising. Overall complexity decreases, import specific ...
6 years, 7 months ago (2014-05-24 01:54:48 UTC) #8
dominicc (has gone to gerrit)
I think this is shaping up nicely. https://codereview.chromium.org/288323004/diff/40001/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h File Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h (right): https://codereview.chromium.org/288323004/diff/40001/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h#newcode48 Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h:48: virtual void ...
6 years, 6 months ago (2014-05-25 23:55:09 UTC) #9
Hajime Morrita
PTAL? https://codereview.chromium.org/288323004/diff/40001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp File Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp (right): https://codereview.chromium.org/288323004/diff/40001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp#newcode60 Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp:60: ASSERT(m_phase == Quiescent || m_phase == DispatchingCallbacks); On ...
6 years, 6 months ago (2014-05-27 21:12:46 UTC) #10
dominicc (has gone to gerrit)
LGTM Some comments inline; I trust your taste and judgement. Happy to do another round ...
6 years, 6 months ago (2014-05-27 23:41:25 UTC) #11
Hajime Morrita
Thanks for the review! Could you PTAL just in case? The diff is small. https://codereview.chromium.org/288323004/diff/60001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp ...
6 years, 6 months ago (2014-05-28 00:41:36 UTC) #12
dominicc (has gone to gerrit)
LGTM modulo one comment inline. https://codereview.chromium.org/288323004/diff/60001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp File Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp (right): https://codereview.chromium.org/288323004/diff/60001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp#newcode68 Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp:68: willOrDidEnqueueStep(); On 2014/05/28 00:41:37, ...
6 years, 6 months ago (2014-05-28 01:41:34 UTC) #13
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-05-28 21:17:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/288323004/120001
6 years, 6 months ago (2014-05-28 21:18:13 UTC) #15
Hajime Morrita
On 2014/05/28 01:41:34, dominicc wrote: > LGTM modulo one comment inline. > > https://codereview.chromium.org/288323004/diff/60001/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp > ...
6 years, 6 months ago (2014-05-28 21:19:26 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-05-28 22:30:16 UTC) #17
commit-bot: I haz the power
Change committed as 175007
6 years, 6 months ago (2014-05-28 23:00:12 UTC) #18
haraken
sof@: I think this CL conflicted with your CL to move custom elements to oilpan's ...
6 years, 6 months ago (2014-05-29 02:22:33 UTC) #19
Hajime Morrita
6 years, 6 months ago (2014-05-29 20:02:15 UTC) #20
Message was sent while issue was closed.
Ouch, did this break the build? I'm sorry about that :-(

Powered by Google App Engine
This is Rietveld 408576698