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

Issue 2054433002: Implement "create an element" when sync for Custom Element V1 (Closed)

Created:
4 years, 6 months ago by kojii
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@async-ce
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement "create an element" when sync for Custom Element V1 This patch implements "create an element" concept[1] step 6.2, when synchronous custom elements flag is set. [1] https://dom.spec.whatwg.org/#concept-create-element BUG=594918 Committed: https://crrev.com/e21fcf2e901efb0655bc6beb1355173ea401de83 Cr-Commit-Position: refs/heads/master@{#399789}

Patch Set 1 #

Patch Set 2 : Fix building tests #

Total comments: 14

Patch Set 3 : Add tests for createElementNS #

Patch Set 4 : dominicc review #

Patch Set 5 : Prefer ExceptionState over throw #

Total comments: 23

Patch Set 6 : dominicc review #

Total comments: 23

Patch Set 7 : dominicc/haraken review #

Total comments: 7

Patch Set 8 : haraken review and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -66 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html View 1 2 3 4 5 1 chunk +120 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 4 5 6 7 4 chunks +84 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp View 1 2 3 4 5 2 chunks +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 4 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 5 6 7 2 chunks +52 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 4 5 6 7 2 chunks +62 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (12 generated)
kojii
PTAL. I need more tests and will update this CL, but code is stable enough ...
4 years, 6 months ago (2016-06-09 05:26:31 UTC) #4
kojii
Tests updated, ready for review. PTAL.
4 years, 6 months ago (2016-06-09 06:28:59 UTC) #5
dominicc (has gone to gerrit)
I like the direction of this. Lots of comments inline. High level: 1. I think ...
4 years, 6 months ago (2016-06-09 06:39:23 UTC) #6
kojii
PTAL. https://codereview.chromium.org/2054433002/diff/20001/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html File third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html (right): https://codereview.chromium.org/2054433002/diff/20001/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html#newcode54 third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html:54: }, '3. If result does not implement the ...
4 years, 6 months ago (2016-06-09 16:54:21 UTC) #8
dominicc (has gone to gerrit)
More comments inline. I saw the back and forth between Domenic and Boris about instanceof. ...
4 years, 6 months ago (2016-06-10 06:13:29 UTC) #9
kojii
All done, PTAL. https://codereview.chromium.org/2054433002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html File third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html (right): https://codereview.chromium.org/2054433002/diff/100001/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html#newcode30 third_party/WebKit/LayoutTests/custom-elements/spec/create-element-defined-synchronous.html:30: }); On 2016/06/10 at 06:13:28, dominicc ...
4 years, 6 months ago (2016-06-10 19:01:45 UTC) #11
dominicc (has gone to gerrit)
lgtm This LGTM. I think we should use CustomElementDescriptor more and name/qname less, but I ...
4 years, 6 months ago (2016-06-13 07:37:24 UTC) #12
kojii
haraken@, PTAL for binding
4 years, 6 months ago (2016-06-13 08:10:05 UTC) #14
haraken
https://codereview.chromium.org/2054433002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2054433002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode161 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:161: // Create an element Is it guaranteed that you're ...
4 years, 6 months ago (2016-06-13 09:05:35 UTC) #15
kojii
Replying to haraken@'s review. Still preparing new CL for dominicc@'s. https://codereview.chromium.org/2054433002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2054433002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode161 ...
4 years, 6 months ago (2016-06-13 10:28:25 UTC) #16
kojii
Done, PTAL. Would like to defer some of refactoring requests in following patch. https://codereview.chromium.org/2054433002/diff/140001/third_party/WebKit/Source/core/dom/Document.h File ...
4 years, 6 months ago (2016-06-13 13:44:32 UTC) #17
dominicc (has gone to gerrit)
Show me how HTMLElementFactory will work on the whiteboard if you have time today :) ...
4 years, 6 months ago (2016-06-14 00:52:51 UTC) #18
dominicc (has gone to gerrit)
Show me how HTMLElementFactory will work on the whiteboard if you have time today :) ...
4 years, 6 months ago (2016-06-14 00:52:52 UTC) #19
haraken
https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode160 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:160: { You can add DCHECK(ScriptState::current() == m_scriptState). https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode199 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:199: ...
4 years, 6 months ago (2016-06-14 01:48:11 UTC) #20
haraken
https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode208 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:208: } To make the code clearer, let's write this ...
4 years, 6 months ago (2016-06-14 06:42:59 UTC) #21
kojii
PTAL. https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2054433002/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode160 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:160: { On 2016/06/14 at 01:48:11, haraken wrote: > ...
4 years, 6 months ago (2016-06-14 07:13:15 UTC) #22
haraken
LGTM But I want to consider how to clean up the exception handling (by improving ...
4 years, 6 months ago (2016-06-14 07:22:10 UTC) #23
kojii
Thank you for the prompt review. On 2016/06/14 at 07:22:10, haraken wrote: > But I ...
4 years, 6 months ago (2016-06-14 07:53:41 UTC) #24
haraken
On 2016/06/14 07:53:41, kojii wrote: > Thank you for the prompt review. > > On ...
4 years, 6 months ago (2016-06-14 07:55:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054433002/180001
4 years, 6 months ago (2016-06-14 14:32:22 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/238843)
4 years, 6 months ago (2016-06-14 18:05:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054433002/180001
4 years, 6 months ago (2016-06-14 18:06:14 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 6 months ago (2016-06-14 21:46:42 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 21:46:50 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 21:48:14 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e21fcf2e901efb0655bc6beb1355173ea401de83
Cr-Commit-Position: refs/heads/master@{#399789}

Powered by Google App Engine
This is Rietveld 408576698