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

Issue 106903007: Let unresolved custom element go through CustomElementCallbackQueue. (Closed)

Created:
7 years ago by Hajime Morrita
Modified:
6 years, 12 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Let unresolved custom element go through CustomElementCallbackQueue. As a preparation for crbug.com/313384, this change introduces CustomElementResolutionInvocation that is created per unresolved element and goes through CECallbackQueue, then it does retry the resolution attempt at its own invocation. By going through the queue, we can guarantee the tree order of unresolved element in CEUpdagradeCandidateMap even with HTMLImports, which currently throw unresolved elements into the candidate map in unpredictable way. In coming changes, we'll fix the invocation order of import-provided elements. This change will work with those changes and will provide well defined order of element upgrade. BUG=313384 TEST=document-register-on-create-callback.html R=dominicc,dglazkov,falken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164309

Patch Set 1 #

Total comments: 17

Patch Set 2 : Updated #

Total comments: 12

Patch Set 3 : Updated. #

Total comments: 24

Patch Set 4 : Updated #

Total comments: 1

Patch Set 5 : For landing #

Patch Set 6 : Diff was broken. Landing again #

Patch Set 7 : Updated test. Landing again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -111 lines) Patch
M LayoutTests/fast/dom/custom/created-callback.html View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/custom/created-callback-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/dom/custom/document-register-on-create-callback.html View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/dom/custom/CustomElementCallbackInvocation.h View 1 2 3 2 chunks +3 lines, -7 lines 0 comments Download
M Source/core/dom/custom/CustomElementCallbackInvocation.cpp View 1 2 3 4 2 chunks +0 lines, -23 lines 0 comments Download
M Source/core/dom/custom/CustomElementCallbackQueue.h View 1 4 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/custom/CustomElementCallbackScheduler.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/dom/custom/CustomElementCallbackScheduler.cpp View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download
A + Source/core/dom/custom/CustomElementProcessingStep.h View 1 2 3 1 chunk +14 lines, -7 lines 0 comments Download
M Source/core/dom/custom/CustomElementRegistrationContext.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/custom/CustomElementRegistrationContext.cpp View 1 3 chunks +14 lines, -17 lines 0 comments Download
A + Source/core/dom/custom/CustomElementResolutionStep.h View 1 2 3 1 chunk +19 lines, -23 lines 0 comments Download
A + Source/core/dom/custom/CustomElementResolutionStep.cpp View 1 2 1 chunk +20 lines, -17 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Hajime Morrita
PTAL?
7 years ago (2013-12-12 10:34:45 UTC) #1
falken
I'm not familiar enough to comment on the design but the code change lgtm
7 years ago (2013-12-12 10:55:31 UTC) #2
dominicc (has gone to gerrit)
Comments inline. I like the direction this is going, I think the naming and factoring ...
7 years ago (2013-12-13 05:11:15 UTC) #3
Hajime Morrita
Thanks for the thorough review Dominic! I updated the patch to address some of your ...
7 years ago (2013-12-13 07:02:29 UTC) #4
dominicc (has gone to gerrit)
Great work! I think how you have it down is easier to understand. I've made ...
7 years ago (2013-12-14 02:42:00 UTC) #5
dominicc (has gone to gerrit)
Oops, ...and here are the comments. https://codereview.chromium.org/106903007/diff/20001/LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt File LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt (right): https://codereview.chromium.org/106903007/diff/20001/LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt#newcode1 LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt:1: document.register() should affect ...
7 years ago (2013-12-14 02:42:38 UTC) #6
Hajime Morrita
Thanks for the review! PTAL at the updated one? https://codereview.chromium.org/106903007/diff/20001/LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt File LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt (right): https://codereview.chromium.org/106903007/diff/20001/LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt#newcode1 LayoutTests/fast/dom/custom/document-register-on-create-callback-expected.txt:1: ...
7 years ago (2013-12-16 09:00:33 UTC) #7
dominicc (has gone to gerrit)
Comments inline. Re: renaming isCreated, feel free to add a FIXME and I can do ...
7 years ago (2013-12-18 08:46:41 UTC) #8
Hajime Morrita
PTAL? https://codereview.chromium.org/106903007/diff/40001/LayoutTests/fast/dom/custom/created-callback.html File LayoutTests/fast/dom/custom/created-callback.html (right): https://codereview.chromium.org/106903007/diff/40001/LayoutTests/fast/dom/custom/created-callback.html#newcode125 LayoutTests/fast/dom/custom/created-callback.html:125: var toBeMoved = originalFrame.contentDocument.getElementById("toBeMoved"); On 2013/12/18 08:46:41, dominicc ...
7 years ago (2013-12-19 05:06:58 UTC) #9
dominicc (has gone to gerrit)
This LGTM, thanks for working on this, it looks neat. In the follow-up changelists we ...
7 years ago (2013-12-20 05:36:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/106903007/80001
6 years, 12 months ago (2013-12-24 05:39:58 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) blink_platform_unittests, webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, wtf_unittests ...
6 years, 12 months ago (2013-12-24 06:19:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/106903007/260001
6 years, 12 months ago (2013-12-24 07:08:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/106903007/360001
6 years, 12 months ago (2013-12-24 07:54:32 UTC) #14
commit-bot: I haz the power
6 years, 12 months ago (2013-12-24 09:47:25 UTC) #15
Message was sent while issue was closed.
Change committed as 164309

Powered by Google App Engine
This is Rietveld 408576698