Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(89)

Issue 1168323002: Support parameter passing for shadow-dom.js's createShadowRoot (Closed)

Created:
4 years, 10 months ago by kochi
Modified:
4 years, 10 months ago
Reviewers:
hayato
CC:
blink-reviews
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Support parameter passing for shadow-dom.js's createShadowRoot shadow-dom.js has a utility function 'createShadowRoot()' for wrapping Element.createShadowRoot(), and this CL adds support for passing its parameter as wrapper's 1st argument. Only 'mode' property will be passed to Element.createShadowRoot() and other properties are treated as attributes for shadow root as before. BUG=459136 TEST=fast/dom/shadow/create-shadow-root-with-parameter.html, not breaking other shadow-dom.js users Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196747

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix for comment, and update test expectation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html View 2 chunks +9 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/shadow/resources/shadow-dom.js View 1 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
kochi
PTAL
4 years, 10 months ago (2015-06-09 04:13:34 UTC) #2
hayato
lgtm https://codereview.chromium.org/1168323002/diff/1/LayoutTests/fast/dom/shadow/resources/shadow-dom.js File LayoutTests/fast/dom/shadow/resources/shadow-dom.js (right): https://codereview.chromium.org/1168323002/diff/1/LayoutTests/fast/dom/shadow/resources/shadow-dom.js#newcode13 LayoutTests/fast/dom/shadow/resources/shadow-dom.js:13: var obj = {'isShadowRoot': true, Nit: I'd prefer ...
4 years, 10 months ago (2015-06-09 04:34:38 UTC) #3
kochi
Thanks for the review. https://codereview.chromium.org/1168323002/diff/1/LayoutTests/fast/dom/shadow/resources/shadow-dom.js File LayoutTests/fast/dom/shadow/resources/shadow-dom.js (right): https://codereview.chromium.org/1168323002/diff/1/LayoutTests/fast/dom/shadow/resources/shadow-dom.js#newcode13 LayoutTests/fast/dom/shadow/resources/shadow-dom.js:13: var obj = {'isShadowRoot': true, ...
4 years, 10 months ago (2015-06-09 04:46:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1168323002/20001
4 years, 10 months ago (2015-06-09 04:47:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/65791)
4 years, 10 months ago (2015-06-09 07:26:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1168323002/20001
4 years, 10 months ago (2015-06-09 07:29:10 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2015-06-09 08:53:50 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196747

Powered by Google App Engine
This is Rietveld 408576698