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

Issue 1994093002: Introduce CustomElementRegistry#get() method (Closed)

Created:
4 years, 7 months ago by yosin_UTC9
Modified:
4 years, 6 months ago
CC:
blink-reviews, 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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce CustomElementRegistry#get() method This patch introduces |CustomElementRegistry#get()| as specified in [1]. To return associated constructor by |get()|, this patch introduces |getConsturcotr(ScriptState*)| member function to |CustomElementDefinition| as pure virtual function and implements it in |ScriptCustomElementDefinition|. [1] https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementsregistry-get BUG=594918 TEST=LayoutTests/custom-elements/spec/custom-elements-registry/get.html TEST=LayoutTests/webexposed/global-interface-listing.html Committed: https://crrev.com/217bd0280d1a9cfd18ade5f2f3c744e8cfb0a0f4 Cr-Commit-Position: refs/heads/master@{#397351}

Patch Set 1 : 2016-05-19T17:33:00 #

Total comments: 4

Patch Set 2 : 2016-05-20T19:26:06 #

Patch Set 3 : 2016-05-23T13:18:56 #

Patch Set 4 : 2016-05-23T13:42:56 #

Total comments: 6

Patch Set 5 : 2016-05-30T15:13:58 #

Patch Set 6 : 2016-05-31T14:40:56 #

Total comments: 8

Patch Set 7 : 2016-05-31T18:12:12 #

Total comments: 13

Patch Set 8 : 2016-06-01T11:06:28 #

Total comments: 6

Patch Set 9 : 2016-06-01T12:54:14 #

Patch Set 10 : 2016-06-01T15:09:57 #

Messages

Total messages: 50 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/1
4 years, 7 months ago (2016-05-19 09:16:03 UTC) #2
yosin_UTC9
PTAL This patch isn't ready for commit since it has not test. Do we have ...
4 years, 7 months ago (2016-05-19 09:43:47 UTC) #5
kojii
> Or, should I write one? The interface was changed since WebKit experimented, so they ...
4 years, 7 months ago (2016-05-19 10:04:32 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/230665)
4 years, 7 months ago (2016-05-19 10:51:43 UTC) #8
kojii
Oh btw, dominicc wrote a doc here: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/dom/custom/README.md
4 years, 7 months ago (2016-05-19 12:17:35 UTC) #9
dominicc (has gone to gerrit)
Please add a LayoutTest in custom-elements/spec. https://codereview.chromium.org/1994093002/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp File third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp (right): https://codereview.chromium.org/1994093002/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp#newcode164 third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp:164: v8::Local<v8::Context> context = ...
4 years, 7 months ago (2016-05-19 22:12:10 UTC) #10
yosin_UTC9
PTAL https://codereview.chromium.org/1994093002/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp File third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp (right): https://codereview.chromium.org/1994093002/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp#newcode157 third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp:157: // http://w3c.github.io/webcomponents/spec/custom/#dom-customelementsregistry-get On 2016/05/19 at 10:04:32, kojii wrote: ...
4 years, 7 months ago (2016-05-23 04:45:06 UTC) #14
dominicc (has gone to gerrit)
Sorry for the slow reply. This is looking pretty good; some comments inline. This will ...
4 years, 7 months ago (2016-05-25 01:31:23 UTC) #15
dominicc (has gone to gerrit)
Who knows how that big split-up patch will go. However I think it is fine ...
4 years, 7 months ago (2016-05-25 07:06:38 UTC) #16
yosin_UTC9
PTAL This patch introduces CustomElementDefinition::getConstructor(ScriptState*). Following patch will introduce getWhenDefinedPromise(ScriptState*). https://codereview.chromium.org/1994093002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/get.html File third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/get.html (right): https://codereview.chromium.org/1994093002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/get.html#newcode11 ...
4 years, 6 months ago (2016-05-30 06:17:56 UTC) #19
dominicc (has gone to gerrit)
Could we get this rebased?
4 years, 6 months ago (2016-05-31 05:00:38 UTC) #20
yosin_UTC9
On 2016/05/31 at 05:00:38, dominicc wrote: > Could we get this rebased? PTAL rebased.
4 years, 6 months ago (2016-05-31 05:44:15 UTC) #21
dominicc (has gone to gerrit)
https://codereview.chromium.org/1994093002/diff/100001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h (right): https://codereview.chromium.org/1994093002/diff/100001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h#newcode49 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h:49: ScriptValue getConstructor(ScriptState*) final; Because ScriptCustomElementDefinition will need to vend ...
4 years, 6 months ago (2016-05-31 06:01:51 UTC) #22
yosin_UTC9
PTAL I'm not sure I need to pass around |ScriptState| from CustomElementsRegistery.get() to ScriptCustomElementsRegistry via ...
4 years, 6 months ago (2016-05-31 09:16:57 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/120001
4 years, 6 months ago (2016-05-31 22:56:32 UTC) #26
dominicc (has gone to gerrit)
https://codereview.chromium.org/1994093002/diff/120001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/1994093002/diff/120001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode144 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:144: return ScriptValue(scriptState, v8Undefined()); On 2016/05/31 at 09:16:57, Yosi_UTC9 wrote: ...
4 years, 6 months ago (2016-05-31 22:56:32 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 01:09:29 UTC) #29
yosin_UTC9
PTAL +haraken@ for another eye for ScriptState usage. https://codereview.chromium.org/1994093002/diff/120001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/1994093002/diff/120001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode144 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:144: return ...
4 years, 6 months ago (2016-06-01 02:14:37 UTC) #31
haraken
https://codereview.chromium.org/1994093002/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/1994093002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode124 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:124: ScriptState* scriptState) const ScriptState is not needed. You can ...
4 years, 6 months ago (2016-06-01 02:28:14 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/140001
4 years, 6 months ago (2016-06-01 03:35:34 UTC) #34
yosin_UTC9
PTAL https://codereview.chromium.org/1994093002/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/1994093002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode124 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:124: ScriptState* scriptState) const On 2016/06/01 at 02:28:12, haraken ...
4 years, 6 months ago (2016-06-01 06:16:14 UTC) #35
haraken
LGTM
4 years, 6 months ago (2016-06-01 06:19:36 UTC) #36
dominicc (has gone to gerrit)
lgtm
4 years, 6 months ago (2016-06-02 00:33:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/180001
4 years, 6 months ago (2016-06-02 00:34:46 UTC) #39
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/231882)
4 years, 6 months ago (2016-06-02 03:49:17 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/180001
4 years, 6 months ago (2016-06-02 04:09:01 UTC) #43
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/231932)
4 years, 6 months ago (2016-06-02 06:28:14 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994093002/180001
4 years, 6 months ago (2016-06-02 07:00:00 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-02 09:36:53 UTC) #48
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 09:38:07 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/217bd0280d1a9cfd18ade5f2f3c744e8cfb0a0f4
Cr-Commit-Position: refs/heads/master@{#397351}

Powered by Google App Engine
This is Rietveld 408576698