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

Issue 1204933006: Elements moved from a shadow root to a detached tree should clear their IsInShadowTree Flag (Closed)

Created:
4 years, 10 months ago by rhogan
Modified:
4 years, 10 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Elements moved from a shadow root to a detached tree should clear their IsInShadowTree Flag When an element is moved from a shadow root to a detached subtree we need to clear down the IsInShadowTree flag on it if the subtree isn't also a shadow root. This wasn't happening because the required call was optimized away - on the assumption that elements in out-of-document subtrees didn't need it. I guess that assumption pre-dated the addition of shadow-root logic to the function. BUG=491844 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197817

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
A LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html View 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Element.h View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 9 (2 generated)
rhogan
4 years, 10 months ago (2015-06-24 17:46:22 UTC) #2
esprehn
You want to change both of those callers to isInTreeScope() I think. To unsubscribe from ...
4 years, 10 months ago (2015-06-24 18:27:34 UTC) #3
rhogan
https://codereview.chromium.org/1204933006/diff/1/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/1204933006/diff/1/Source/core/dom/ContainerNode.cpp#newcode855 Source/core/dom/ContainerNode.cpp:855: if (!node.inDocument() && !node.isContainerNode() && !node.isInShadowTree()) Strictly, shouldn't this ...
4 years, 10 months ago (2015-06-24 20:20:22 UTC) #4
rhogan
https://codereview.chromium.org/1204933006/diff/20001/Source/core/dom/Element.h File Source/core/dom/Element.h (right): https://codereview.chromium.org/1204933006/diff/20001/Source/core/dom/Element.h#newcode799 Source/core/dom/Element.h:799: ASSERT(insertionPoint->inDocument() || isContainerNode() || isInShadowTree()); I didn't use isInTreeScope() ...
4 years, 10 months ago (2015-06-24 20:34:42 UTC) #5
esprehn
lgtm
4 years, 10 months ago (2015-06-24 22:32:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204933006/20001
4 years, 10 months ago (2015-06-25 12:28:02 UTC) #8
commit-bot: I haz the power
4 years, 10 months ago (2015-06-25 12:31:30 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197817

Powered by Google App Engine
This is Rietveld 408576698