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

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: wip 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/ContainerNode.cpp
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
index bcc1d15d6ee48710ad925aa2daf4b702795cb456..8c5183ba31da7458920c225d055b84f903394046 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
@@ -1534,6 +1534,9 @@ bool childAttachedAllowedWhenAttachingChildren(ContainerNode* node)
if (node->isInsertionPoint())
return true;
+ if (isHTMLSlotElement(node))
+ return true;
+
if (node->isElementNode() && toElement(node)->shadow())
return true;

Powered by Google App Engine
This is Rietveld 408576698