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

Unified Diff: sky/engine/core/dom/shadow/InsertionPoint.h

Issue 759663003: Only allow one shadowRoot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 6 years, 1 month 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: sky/engine/core/dom/shadow/InsertionPoint.h
diff --git a/sky/engine/core/dom/shadow/InsertionPoint.h b/sky/engine/core/dom/shadow/InsertionPoint.h
index 005c583ee439631f8275998747fc5a0f92cb5aa3..82ade6bb884c169a271892b7d7bb7f6784648110 100644
--- a/sky/engine/core/dom/shadow/InsertionPoint.h
+++ b/sky/engine/core/dom/shadow/InsertionPoint.h
@@ -95,8 +95,6 @@ inline ElementShadow* shadowWhereNodeCanBeDistributed(const Node& node)
Node* parent = node.parentNode();
if (!parent)
return 0;
- if (parent->isShadowRoot() && !toShadowRoot(parent)->isYoungest())
- return node.shadowHost()->shadow();
if (isActiveInsertionPoint(*parent))
return node.shadowHost()->shadow();
if (parent->isElementNode())

Powered by Google App Engine
This is Rietveld 408576698