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

Issue 2058823002: Implement 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-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@stack-ce
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement callback reactions for Custom Elements V1 This patch implements callbacks for Custom Elements V1: 1. Add Hooks to call methods in CustomElement class. a. Element calls connected, disconnected, and attributeChanged. b. CustomElementDefinition calls on upgrade. 2. CustomElement looks up CustomElementDefinition. Enqueueing reactions were moved from CustomElement to CustomElementDefinition. Implementing ScriptCustomElementDefinition to call JavaScript will be in the following patch. BUG=594918 Committed: https://crrev.com/35a2d25bafa5299fdb57cb857605c3d3655cf7be Cr-Commit-Position: refs/heads/master@{#399496}

Patch Set 1 #

Patch Set 2 : Missing files #

Patch Set 3 : Add attributeChangedCallback #

Patch Set 4 : Minor cleanup #

Total comments: 13

Patch Set 5 : dominicc review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -60 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 2 3 3 chunks +7 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 3 chunks +32 lines, -9 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementAttributeChangedCallbackReaction.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementAttributeChangedCallbackReaction.cpp View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementConnectedCallbackReaction.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementConnectedCallbackReaction.cpp View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 chunks +48 lines, -4 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementDisconnectedCallbackReaction.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementDisconnectedCallbackReaction.cpp View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h View 1 2 1 chunk +9 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementReaction.cpp View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementReactionTestHelpers.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeReaction.h View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeReaction.cpp View 1 2 1 chunk +1 line, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp View 1 2 3 4 3 chunks +136 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (6 generated)
kojii
PTAL. https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/dom/custom/CustomElement.h File third_party/WebKit/Source/core/dom/custom/CustomElement.h (left): https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#oldcode44 third_party/WebKit/Source/core/dom/custom/CustomElement.h:44: static bool descriptorMayMatch(const Element& element) Should "getCustomElementState() == ...
4 years, 6 months ago (2016-06-13 02:31:10 UTC) #4
dominicc (has gone to gerrit)
lgtm This looks very nice. Nits inline. https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/core.gypi File third_party/WebKit/Source/core/core.gypi (right): https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/core.gypi#newcode2668 third_party/WebKit/Source/core/core.gypi:2668: 'dom/custom/CustomElementDisconnectedCallbackReaction.cpp', Order ...
4 years, 6 months ago (2016-06-13 07:59:01 UTC) #5
kojii
Done, or commented ("done" comments omitted) https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/dom/custom/CustomElement.h File third_party/WebKit/Source/core/dom/custom/CustomElement.h (right): https://codereview.chromium.org/2058823002/diff/60001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#newcode50 third_party/WebKit/Source/core/dom/custom/CustomElement.h:50: On 2016/06/13 at ...
4 years, 6 months ago (2016-06-13 14:56:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058823002/80001
4 years, 6 months ago (2016-06-13 18:48:05 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-13 18:56:34 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 19:02:25 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/35a2d25bafa5299fdb57cb857605c3d3655cf7be
Cr-Commit-Position: refs/heads/master@{#399496}

Powered by Google App Engine
This is Rietveld 408576698