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

Issue 2003033004: Split custom element script use and move it into bindings (Closed)

Created:
4 years, 7 months ago by dominicc (has gone to gerrit)
Modified:
4 years, 6 months ago
Reviewers:
haraken, esprehn, dglazkov, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, kojii, rwlbuis, sof, webcomponents-bugzilla_chromium.org, yosin_UTC9
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split custom element script use and move it into bindings In the future Web Modules may define custom elements from C++. This adds some abstract classes in preparation for that. In addition, adds some context death tests. BUG=594918 Committed: https://crrev.com/c4ccc6b681aba1870c8aed69b3a18201ee97ddd4 Cr-Commit-Position: refs/heads/master@{#396672}

Patch Set 1 #

Patch Set 2 : Also export CustomElementDefinition. #

Patch Set 3 : Add missing CORE_EXPORT header. #

Total comments: 13

Patch Set 4 : Address feedback. #

Patch Set 5 : Address feedback and rebase. #

Patch Set 6 : Remove ScriptState include; ScriptState is just passthru in CER. #

Patch Set 7 : +rebase #

Patch Set 8 : Remove scope switching. #

Total comments: 2

Patch Set 9 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -199 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/constructor-context-dies-before-super.html View 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/custom-elements/constructor-context-dies-cross-context-call.html View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/custom-elements/define-context-dies-retrieving-prototype.html View 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 4 5 6 7 8 1 chunk +136 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp View 1 2 3 4 5 6 7 8 1 chunk +96 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/v8.gypi View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 1 chunk +8 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 chunk +2 lines, -8 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h View 1 2 3 4 3 chunks +18 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp View 1 2 3 4 5 5 chunks +49 lines, -132 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/README.md View 2 chunks +28 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
dominicc (has gone to gerrit)
PTAL
4 years, 7 months ago (2016-05-25 04:37:00 UTC) #2
esprehn
This lgtm, haraken@ do you or someone on bindings want to make sure the bindings/ ...
4 years, 7 months ago (2016-05-26 04:50:29 UTC) #4
Yuki
https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode29 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:29: , m_scriptState(ScriptState::from(m_registry->CreationContext())) What script state are you expecting here? ...
4 years, 7 months ago (2016-05-26 07:48:40 UTC) #6
haraken
Hmm, I'm a bit confused. Form the perspective of providing web modules APIs, what matters ...
4 years, 7 months ago (2016-05-26 08:33:46 UTC) #7
haraken
On 2016/05/26 08:33:46, haraken wrote: > Hmm, I'm a bit confused. > > Form the ...
4 years, 7 months ago (2016-05-26 15:31:37 UTC) #8
dominicc (has gone to gerrit)
On 2016/05/26 at 07:48:40, yukishiino wrote: > https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): > > https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode29 ...
4 years, 7 months ago (2016-05-26 21:17:47 UTC) #9
haraken
On 2016/05/26 21:17:47, dominicc wrote: > On 2016/05/26 at 07:48:40, yukishiino wrote: > > > ...
4 years, 7 months ago (2016-05-26 22:42:47 UTC) #10
haraken
I've learned that there is some time pressure to ship Custom Elements. As far as ...
4 years, 7 months ago (2016-05-26 23:08:36 UTC) #12
dominicc (has gone to gerrit)
On 2016/05/26 at 23:08:36, haraken wrote: > I've learned that there is some time pressure ...
4 years, 7 months ago (2016-05-27 04:53:33 UTC) #13
dominicc (has gone to gerrit)
https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2003033004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode29 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:29: , m_scriptState(ScriptState::from(m_registry->CreationContext())) On 2016/05/26 at 07:48:40, Yuki wrote: > ...
4 years, 7 months ago (2016-05-27 04:54:17 UTC) #14
haraken
On 2016/05/27 04:53:33, dominicc wrote: > On 2016/05/26 at 23:08:36, haraken wrote: > > I've ...
4 years, 7 months ago (2016-05-27 08:19:04 UTC) #15
esprehn
So I think the primary goals here are: 1) Ship Custom Elements v1 2) Enable ...
4 years, 6 months ago (2016-05-27 20:44:37 UTC) #16
haraken
On 2016/05/27 20:44:37, esprehn wrote: > So I think the primary goals here are: > ...
4 years, 6 months ago (2016-05-27 21:09:19 UTC) #17
dominicc (has gone to gerrit)
On 2016/05/27 at 08:19:04, haraken wrote: > On 2016/05/27 04:53:33, dominicc wrote: > > On ...
4 years, 6 months ago (2016-05-27 22:46:33 UTC) #18
dominicc (has gone to gerrit)
On 2016/05/27 at 20:44:37, esprehn wrote: > So I think the primary goals here are: ...
4 years, 6 months ago (2016-05-27 23:00:09 UTC) #19
dominicc (has gone to gerrit)
On 2016/05/27 at 21:09:19, haraken wrote: > I think that this split is going in ...
4 years, 6 months ago (2016-05-27 23:09:10 UTC) #20
haraken
On 2016/05/27 22:46:33, dominicc wrote: > On 2016/05/27 at 08:19:04, haraken wrote: > > On ...
4 years, 6 months ago (2016-05-28 00:00:02 UTC) #21
dominicc (has gone to gerrit)
On 2016/05/28 at 00:00:02, haraken wrote: > On 2016/05/27 22:46:33, dominicc wrote: > > On ...
4 years, 6 months ago (2016-05-28 02:27:32 UTC) #22
dominicc (has gone to gerrit)
On 2016/05/27 at 23:00:09, dominicc wrote: > On 2016/05/27 at 20:44:37, esprehn wrote: > > ...
4 years, 6 months ago (2016-05-28 02:31:32 UTC) #23
haraken
LGTM > > > Hence we should enter the > > > context associated with ...
4 years, 6 months ago (2016-05-28 08:29:48 UTC) #24
dominicc (has gone to gerrit)
On 2016/05/28 at 08:29:48, haraken wrote: > LGTM > > > > > Hence we ...
4 years, 6 months ago (2016-05-30 00:10:02 UTC) #25
haraken
On 2016/05/30 00:10:02, dominicc wrote: > On 2016/05/28 at 08:29:48, haraken wrote: > > LGTM ...
4 years, 6 months ago (2016-05-30 00:19:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003033004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003033004/160001
4 years, 6 months ago (2016-05-30 00:23:02 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-05-30 04:20:10 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 04:21:35 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c4ccc6b681aba1870c8aed69b3a18201ee97ddd4
Cr-Commit-Position: refs/heads/master@{#396672}

Powered by Google App Engine
This is Rietveld 408576698