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

Issue 2060753002: Implement script-side of callback reactions for Custom Elements V1 (Closed)

Created:
4 years, 6 months ago by kojii
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, Michael Hablich
Base URL:
https://chromium.googlesource.com/chromium/src.git@callback-ce
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement script-side of callback reactions for Custom Elements V1 This patch implements script-side of callback reactions. Abstract classes were implemented in a separate CL[1]. Also contains following refactoring: 1. Callbacks are stored as v8::Function to make calling them easier. 2. m_observedAttribute is moved to the super class (CustomElementDefinition) to allow iteratiion. 3. The order to Get("observedAttributes") was changed as per the spec change[2]. The wpt test failure is a test issue, PR[3] is sent. [1] https://codereview.chromium.org/2058823002 [2] https://github.com/whatwg/html/issues/1373 [3] https://github.com/w3c/web-platform-tests/pull/3175 BUG=594918 Committed: https://crrev.com/4f581ae17af347201ede92b01dc47068ee0cf2d5 Cr-Commit-Position: refs/heads/master@{#399859}

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : enqueueAttributeChangedCallbackForAllAttributes and test fixes #

Total comments: 4

Patch Set 4 : dominicc review #

Total comments: 4

Patch Set 5 : haraken review #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -56 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/callback.html View 1 1 chunk +117 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h View 1 2 3 4 5 4 chunks +20 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 4 5 4 chunks +80 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.h View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp View 3 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 3 4 5 4 chunks +15 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 4 5 5 chunks +33 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 40 (16 generated)
kojii
PTAL.
4 years, 6 months ago (2016-06-14 05:37:45 UTC) #5
dominicc (has gone to gerrit)
Some comments inline. https://codereview.chromium.org/2060753002/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/2060753002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode154 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:154: m_observedAttributes = observedAttributes; We should make ...
4 years, 6 months ago (2016-06-14 09:19:45 UTC) #6
kojii
All done, thank you for your prompt review. haraken@, PTAL for bindings; thank you for ...
4 years, 6 months ago (2016-06-14 11:18:54 UTC) #7
haraken
Mostly looks good. https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode239 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:239: ScriptController::callFunction( Nit: Use V8ScriptRunner::callFunction. ScriptController's one ...
4 years, 6 months ago (2016-06-14 11:39:24 UTC) #8
kojii
Comment on V8StringOrNull below, others are done in PS5. https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8Binding.h File third_party/WebKit/Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8Binding.h#newcode410 third_party/WebKit/Source/bindings/core/v8/V8Binding.h:410: ...
4 years, 6 months ago (2016-06-14 13:59:43 UTC) #9
haraken
On 2016/06/14 13:59:43, kojii wrote: > Comment on V8StringOrNull below, others are done in PS5. ...
4 years, 6 months ago (2016-06-14 15:22:51 UTC) #11
kojii
On 2016/06/14 at 15:22:51, haraken wrote: > On 2016/06/14 13:59:43, kojii wrote: > > Comment ...
4 years, 6 months ago (2016-06-14 15:47:41 UTC) #12
haraken
On 2016/06/14 15:47:41, kojii wrote: > On 2016/06/14 at 15:22:51, haraken wrote: > > On ...
4 years, 6 months ago (2016-06-14 23:51:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060753002/80001
4 years, 6 months ago (2016-06-15 04:20:50 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/200885)
4 years, 6 months ago (2016-06-15 04:33:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060753002/80001
4 years, 6 months ago (2016-06-15 04:56:09 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/200906)
4 years, 6 months ago (2016-06-15 05:03:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060753002/100001
4 years, 6 months ago (2016-06-15 05:29:57 UTC) #24
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/239285)
4 years, 6 months ago (2016-06-15 06:33:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060753002/100001
4 years, 6 months ago (2016-06-15 06:39:22 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-15 08:32:19 UTC) #29
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0dee3ec4784b2fb73d3aefaab1e00e92767ac767 Cr-Commit-Position: refs/heads/master@{#399858}
4 years, 6 months ago (2016-06-15 08:35:30 UTC) #31
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/4f581ae17af347201ede92b01dc47068ee0cf2d5 Cr-Commit-Position: refs/heads/master@{#399859}
4 years, 6 months ago (2016-06-15 08:38:16 UTC) #33
picksi1
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2066813003/ by picksi@chromium.org. ...
4 years, 6 months ago (2016-06-15 09:21:12 UTC) #34
picksi1
The revert failed (missing an LGTM)... but that may be fortuitous as there is another ...
4 years, 6 months ago (2016-06-15 09:29:25 UTC) #35
picksi1
The new patch fixed it :)
4 years, 6 months ago (2016-06-15 09:51:49 UTC) #36
kojii
Thank you picksi@!
4 years, 6 months ago (2016-06-15 09:54:28 UTC) #37
Michael Achenbach
API stability nag (no action required): This breaks the api stability checker: https://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stability/builds/17711 Please leave ...
4 years, 6 months ago (2016-06-15 12:54:03 UTC) #39
kojii
4 years, 6 months ago (2016-06-15 14:10:30 UTC) #40
Message was sent while issue was closed.
On 2016/06/15 at 12:54:03, machenbach wrote:
> API stability nag (no action required):
> 
> This breaks the api stability checker:
>
https://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stabili...
> 
> Please leave enough time between v8-side changes and following chromium
changes (min. 2-3 days) so that v8 is always revertible cleanly to the last
canary version.

machenbach@, please see comment 35. Somehow this CL landed twice, and that broke
out build too. Take https://codereview.chromium.org/2066793003/ and your build
should be fixed too.

Powered by Google App Engine
This is Rietveld 408576698