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

Issue 1408443003: Add Element.attachShadow under the ShadowDOMV1 runtime flag (Closed)

Created:
5 years, 2 months ago by hayato
Modified:
5 years, 2 months ago
Reviewers:
kojii, kochi
CC:
chromium-reviews, vivekg, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, vivekg_samsung, Inactive, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Element.attachShadow under the ShadowDOMV1 runtime flag. This is basically renaming from `createShadowRoot(ShadowRootInitDict)`, which was already implemented. Minimum layout tests are updated accordingly. Other changes come after this CL. BUG=531990 Committed: https://crrev.com/c50b98bea4c7bd611fefe7ade6d9bd52fa9af101 Cr-Commit-Position: refs/heads/master@{#354452}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix tests #

Patch Set 3 : cq dry run #

Total comments: 5

Patch Set 4 : Rewrite a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -83 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/delegatesFocus-highlight-sibling.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/focus-shadowhost-display-none.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params.html View 1 2 3 2 chunks +15 lines, -35 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-shadowroot-with-params-expected.txt View 1 2 3 1 chunk +12 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/shadow/breadcrumb-shadow-roots.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/shadow/elements-panel-shadow-selection-on-refresh.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 2 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (6 generated)
hayato
PTAL
5 years, 2 months ago (2015-10-15 08:35:40 UTC) #2
hayato
https://codereview.chromium.org/1408443003/diff/1/third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h File third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h (right): https://codereview.chromium.org/1408443003/diff/1/third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h#newcode37 third_party/WebKit/Source/core/frame/OriginsUsingFeatures.h:37: ElementAttachShadow, kojii@ I guess this is for RAPPOR. Is ...
5 years, 2 months ago (2015-10-15 08:43:04 UTC) #3
kochi
this looks good for the first step. Could you also look at the layout test ...
5 years, 2 months ago (2015-10-15 08:57:00 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408443003/40001
5 years, 2 months ago (2015-10-15 10:26:39 UTC) #6
hayato
On 2015/10/15 08:57:00, Takayoshi Kochi wrote: > this looks good for the first step. > ...
5 years, 2 months ago (2015-10-15 11:43:56 UTC) #7
kochi
https://codereview.chromium.org/1408443003/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html File third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html (right): https://codereview.chromium.org/1408443003/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html#newcode21 third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html:21: shouldBeNonNull("host2.createShadowRoot({mode: 'closed'})"); Forgot to change here? https://codereview.chromium.org/1408443003/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html#newcode25 third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html:25: var ...
5 years, 2 months ago (2015-10-15 12:16:18 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-15 12:52:34 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408443003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408443003/60001
5 years, 2 months ago (2015-10-16 02:28:35 UTC) #12
hayato
https://codereview.chromium.org/1408443003/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html File third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html (right): https://codereview.chromium.org/1408443003/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html#newcode21 third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html:21: shouldBeNonNull("host2.createShadowRoot({mode: 'closed'})"); On 2015/10/15 12:16:18, Takayoshi Kochi wrote: > ...
5 years, 2 months ago (2015-10-16 03:47:29 UTC) #13
kochi
lgtm
5 years, 2 months ago (2015-10-16 04:27:46 UTC) #14
hayato
Thanks. Let me land this CL. It looks we need another change to make RAPPOR ...
5 years, 2 months ago (2015-10-16 04:34:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408443003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408443003/60001
5 years, 2 months ago (2015-10-16 04:34:58 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-16 05:16:27 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 05:17:22 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c50b98bea4c7bd611fefe7ade6d9bd52fa9af101
Cr-Commit-Position: refs/heads/master@{#354452}

Powered by Google App Engine
This is Rietveld 408576698