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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2452473003: Do not use outdated m_distributedNodes of slots in non-shadow trees (Closed)
Patch Set: update Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 8059397fe39faf8fa56d3bc2bd6e957b4626d4e9..3306e156523469d72f1f851aba7f60912bc95fb7 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2374,6 +2374,7 @@ void Node::checkSlotChange() {
Element* parent = parentElement();
if (parent && isHTMLSlotElement(parent)) {
HTMLSlotElement& parentSlot = toHTMLSlotElement(*parent);
+ // TODO(hayato): Support slotchange for slots in non-shadow trees.
if (ShadowRoot* root = containingShadowRoot()) {
if (root && root->isV1() && !parentSlot.hasAssignedNodesSlow())
parentSlot.enqueueSlotChangeEvent();

Powered by Google App Engine
This is Rietveld 408576698