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

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

Issue 1530643003: Support slot element's fallback content feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 11 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/ContainerNode.cpp
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
index 1e2fe05deb8fd395510513ca71914d9918336852..25dfd465fd8158295ca75ec973b13104d5710969 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
@@ -1533,6 +1533,9 @@ bool childAttachedAllowedWhenAttachingChildren(ContainerNode* node)
if (node->isInsertionPoint())
return true;
+ if (isHTMLSlotElement(node))
+ return true;
+
if (node->isElementNode() && toElement(node)->shadow())
return true;
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/shadow/v1-slots-in-v0-expected.html ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698