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

Issue 2170383002: CustomElements: adopt node (Closed)

Created:
4 years, 5 months ago by davaajav
Modified:
4 years, 4 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CustomElements: adopt node https://dom.spec.whatwg.org/#concept-node-adopt 3.2 For each inclusiveDescendant in node’s shadow-including inclusive descendants that is a custom element, enqueue a custom element callback reaction with inclusiveDescendant, callback name "adoptedCallback", and an empty argument list. BUG=594918 Committed: https://crrev.com/6b25a0aa041c31e2ebd85bb308672809fc7d940a Cr-Commit-Position: refs/heads/master@{#409759}

Patch Set 1 #

Total comments: 4

Patch Set 2 : patch update #

Patch Set 3 : patch update #

Patch Set 4 : patch update #

Patch Set 5 : patch update #

Patch Set 6 : adoptedCallback should be enqueued when doc is different from oldDocument #

Total comments: 8

Patch Set 7 : workflow commit #

Patch Set 8 : workflow commit #

Total comments: 3

Patch Set 9 : definitions should move around with elements #

Patch Set 10 : patch update #

Patch Set 11 : patch update #

Total comments: 3

Patch Set 12 : style correction #

Patch Set 13 : layout test went from bad to good, deleting failure expectation #

Total comments: 8

Patch Set 14 : add adoptedCallback to RegistryTest::LogUpgradeDefinition #

Total comments: 1

Patch Set 15 : patch update #

Total comments: 1

Patch Set 16 : inline DCHECK(definition) in Element.cpp #

Patch Set 17 : merge conflict resolution #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -37 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +21 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementRareData.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementRareData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -4 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
davaajav
PTL JS test for adopt node
4 years, 5 months ago (2016-07-22 09:01:37 UTC) #2
dominicc (has gone to gerrit)
Feedback inline. https://codereview.chromium.org/2170383002/diff/1/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node-expected.txt File third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node-expected.txt (right): https://codereview.chromium.org/2170383002/diff/1/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node-expected.txt#newcode1 third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node-expected.txt:1: CONSOLE ERROR: line 20: Uncaught ReferenceError: this ...
4 years, 5 months ago (2016-07-22 09:07:58 UTC) #3
davaajav
PTL
4 years, 5 months ago (2016-07-25 02:58:58 UTC) #4
davaajav
PTL I was making a mistake in the test. adoptedCallback should be enqueued when the ...
4 years, 5 months ago (2016-07-25 06:14:02 UTC) #5
dominicc (has gone to gerrit)
Comments inline. https://codereview.chromium.org/2170383002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html File third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html (right): https://codereview.chromium.org/2170383002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html#newcode9 third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html:9: Delete this blank line. You could separate ...
4 years, 5 months ago (2016-07-25 07:56:14 UTC) #6
dominicc (has gone to gerrit)
Could you change the first line of the description to have a space before elements, ...
4 years, 4 months ago (2016-07-28 02:46:00 UTC) #7
dominicc (has gone to gerrit)
On 2016/07/28 at 02:46:00, dominicc wrote: > Could you change the first line of the ...
4 years, 4 months ago (2016-08-01 11:09:52 UTC) #8
davaajav
PTL https://codereview.chromium.org/2170383002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html File third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html (right): https://codereview.chromium.org/2170383002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html#newcode25 third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html:25: constructor() { super(); } On 2016/07/25 at 07:56:13, ...
4 years, 4 months ago (2016-08-02 07:21:20 UTC) #9
dominicc (has gone to gerrit)
Could you dig into the default constructor more? If I write: http://jsbin.com/zesejahape/1/edit?html,output (press the "run ...
4 years, 4 months ago (2016-08-02 07:48:57 UTC) #10
davaajav
PTL
4 years, 4 months ago (2016-08-03 07:42:04 UTC) #11
dominicc (has gone to gerrit)
Great work; this is very close. Some comments inline. https://codereview.chromium.org/2170383002/diff/240001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2170383002/diff/240001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode141 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:141: ...
4 years, 4 months ago (2016-08-03 07:56:57 UTC) #14
haraken
bindings/ LGTM
4 years, 4 months ago (2016-08-03 08:03:09 UTC) #15
davaajav
PTL https://codereview.chromium.org/2170383002/diff/260001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2170383002/diff/260001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1959 third_party/WebKit/Source/core/dom/Element.cpp:1959: void Element::setCustomElementDefinition(CustomElementDefinition* definition) I am not sure about ...
4 years, 4 months ago (2016-08-03 11:31:14 UTC) #19
davaajav
PTL
4 years, 4 months ago (2016-08-04 07:59:30 UTC) #20
dominicc (has gone to gerrit)
lgtm LGTM, just one nit inline. https://codereview.chromium.org/2170383002/diff/280001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2170383002/diff/280001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1961 third_party/WebKit/Source/core/dom/Element.cpp:1961: if (!hasRareData() && ...
4 years, 4 months ago (2016-08-04 08:04:06 UTC) #21
davaajav
PTL
4 years, 4 months ago (2016-08-04 08:17:50 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/2170383002/300001
4 years, 4 months ago (2016-08-04 08:37:51 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/106910) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-04 08:48:18 UTC) #27
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/2170383002/320001
4 years, 4 months ago (2016-08-04 09:11:43 UTC) #30
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 4 months ago (2016-08-04 10:41:52 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 10:44:53 UTC) #33
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/6b25a0aa041c31e2ebd85bb308672809fc7d940a
Cr-Commit-Position: refs/heads/master@{#409759}

Powered by Google App Engine
This is Rietveld 408576698