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

Issue 21123005: Node.contains should return true for nodes in Shadow DOM. (Closed)

Created:
7 years, 4 months ago by dominicc (has gone to gerrit)
Modified:
7 years, 4 months ago
Reviewers:
Hajime Morrita, esprehn
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, do-not-use
Visibility:
Public.

Description

Node.contains should return true for nodes in Shadow DOM. This is discussed on this W3 bug: <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22141>; BUG=265697 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155161

Patch Set 1 #

Total comments: 1

Patch Set 2 : WIP #

Patch Set 3 : Ready for another look #

Total comments: 2

Patch Set 4 : Make contains-something condition clearer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/shadow/contains-with-shadow-dom-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 1 chunk +21 lines, -3 lines 0 comments Download
M Source/core/dom/Node.idl View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
dominicc (has gone to gerrit)
PTAL
7 years, 4 months ago (2013-07-30 00:26:21 UTC) #1
esprehn
I don't think this is the right fix. https://codereview.chromium.org/21123005/diff/1/Source/core/dom/Node.idl File Source/core/dom/Node.idl (right): https://codereview.chromium.org/21123005/diff/1/Source/core/dom/Node.idl#newcode94 Source/core/dom/Node.idl:94: [ImplementedAs=containsIncludingShadowDOM] ...
7 years, 4 months ago (2013-07-30 00:29:13 UTC) #2
Hajime Morrita
LGTM
7 years, 4 months ago (2013-07-30 00:30:58 UTC) #3
Hajime Morrita
Well, not LGTM from as esprehn's comment.
7 years, 4 months ago (2013-07-30 00:31:30 UTC) #4
esprehn
Discussed this through chat, we'll add a few special cases to containsIncludingShadowDOM so doing document.contains(foo) ...
7 years, 4 months ago (2013-07-30 01:18:11 UTC) #5
esprehn
lgtm, I think the boolean logic would be clearer if you put the ! in ...
7 years, 4 months ago (2013-07-30 03:36:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/21123005/13001
7 years, 4 months ago (2013-07-30 07:08:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/21123005/13001
7 years, 4 months ago (2013-07-30 10:34:08 UTC) #8
commit-bot: I haz the power
7 years, 4 months ago (2013-07-30 13:20:08 UTC) #9
Message was sent while issue was closed.
Change committed as 155161

Powered by Google App Engine
This is Rietveld 408576698