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

Issue 1855823003: Implement Node.isConnected (Closed)

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

Description

Implement Node.isConnected This CL implements a Node atrribute Node.isConnected. Node.isConnected returns true when a context object is in a shadow-including document, and false otherwise. See the spec here: https://dom.spec.whatwg.org/#dom-node-isconnected See the discussion here: https://github.com/w3c/webcomponents/issues/81 BUG=599743 Committed: https://crrev.com/b05e567bbdffc0bd099ab835cdbcbded909550da Cr-Commit-Position: refs/heads/master@{#385990}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use inDocument #

Total comments: 8

Patch Set 3 : Test fix #

Total comments: 8

Patch Set 4 : Test fix #

Total comments: 2

Patch Set 5 : Update test description #

Patch Set 6 : Change inDocument to inShadowIncludingDocument #

Messages

Total messages: 27 (9 generated)
yuzuchan
PTAL This is how I feel about this patch: http://i.imgur.com/0X6VSve.gif
4 years, 8 months ago (2016-04-04 04:55:46 UTC) #2
hayato
Could you send an "Intent to implement and ship: Node.isConnected" in blink-dev? https://codereview.chromium.org/1855823003/diff/1/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp ...
4 years, 8 months ago (2016-04-04 05:32:53 UTC) #3
yuzuchan
This is how I feel about this patch: http://i.imgur.com/gPHIlxW.gif https://codereview.chromium.org/1855823003/diff/1/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): https://codereview.chromium.org/1855823003/diff/1/third_party/WebKit/Source/core/dom/Node.cpp#newcode786 third_party/WebKit/Source/core/dom/Node.cpp:786: ...
4 years, 8 months ago (2016-04-04 07:09:30 UTC) #4
kochi
https://codereview.chromium.org/1855823003/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html File third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html (right): https://codereview.chromium.org/1855823003/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html#newcode5 third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html:5: <script src='resources/shadow-dom.js'></script> Can you remove line 4-5? I don't ...
4 years, 8 months ago (2016-04-04 09:22:43 UTC) #5
yuzuchan
Thanks for the review :) This is how I feel about this patch: http://i.imgur.com/NOw4wiQ.gif https://codereview.chromium.org/1855823003/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html ...
4 years, 8 months ago (2016-04-05 04:25:23 UTC) #6
kochi
https://codereview.chromium.org/1855823003/diff/40001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html File third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html (right): https://codereview.chromium.org/1855823003/diff/40001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html#newcode10 third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html:10: var orphan1 = document.createElement('div'); Now you can move these ...
4 years, 8 months ago (2016-04-05 05:32:28 UTC) #7
yuzuchan
Thanks for the review again! :) This is how I feel about this patch: http://i.imgur.com/BqTs1ZC.gif ...
4 years, 8 months ago (2016-04-05 06:48:48 UTC) #8
kochi
https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html File third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html (right): https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html#newcode15 third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html:15: }, 'When inserted into a document tree, isConnected should ...
4 years, 8 months ago (2016-04-05 07:06:38 UTC) #9
kochi
https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html File third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html (right): https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html#newcode15 third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html:15: }, 'When inserted into a document tree, isConnected should ...
4 years, 8 months ago (2016-04-05 07:06:39 UTC) #10
yuzuchan
This is how I feel about this patch: http://i.imgur.com/WW0jdZv.gif https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html File third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html (right): https://codereview.chromium.org/1855823003/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html#newcode15 third_party/WebKit/LayoutTests/shadow-dom/node-isConnected.html:15: ...
4 years, 8 months ago (2016-04-05 08:29:53 UTC) #11
hayato
LGTM Since "Intent to Ship" [1] is LGTM3ed, you can land this patch now. :) ...
4 years, 8 months ago (2016-04-07 06:14:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855823003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855823003/100001
4 years, 8 months ago (2016-04-08 04:35:06 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/166203)
4 years, 8 months ago (2016-04-08 04:43:47 UTC) #17
yuzuchan
PTAL :)
4 years, 8 months ago (2016-04-08 04:45:26 UTC) #21
tkent
lgtm
4 years, 8 months ago (2016-04-08 04:56:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855823003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855823003/100001
4 years, 8 months ago (2016-04-08 04:56:19 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-08 05:01:10 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 05:02:36 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b05e567bbdffc0bd099ab835cdbcbded909550da
Cr-Commit-Position: refs/heads/master@{#385990}

Powered by Google App Engine
This is Rietveld 408576698