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

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

Issue 1514233003: Make assignedSlot return null for a slot in a closed shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1-slots
Patch Set: rebased Created 5 years 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 51c634b97c06438ad5a9496c91e535f0089371b2..173abe1c5fecceb9eb19114e38c3e37464f53520 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2216,7 +2216,7 @@ HTMLSlotElement* Node::assignedSlot() const
if (!parent)
return nullptr;
if (ElementShadow* shadow = parent->shadow()) {
- if (shadow->isV1())
+ if (shadow->isV1() && shadow->isOpen())
return shadow->assignedSlotFor(*this);
}
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698