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

Unified Diff: Source/core/dom/shadow/InsertionPoint.cpp

Issue 137993003: Revert the feature of the <shadow> element as 'a function call' to the previous behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update LayoutTests/TestExpectations Created 6 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
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/InsertionPoint.cpp
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
index 4ac11b49488c9eb844816f0d92648b9680be7864..8cc0fb45dc3e2d630b280c84a0241d3c5cc8c9bc 100644
--- a/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/Source/core/dom/shadow/InsertionPoint.cpp
@@ -134,16 +134,9 @@ bool InsertionPoint::canBeActive() const
{
if (!isInShadowTree())
return false;
- bool foundShadowElementInAncestors = false;
- bool thisIsContentHTMLElement = hasTagName(contentTag);
for (Node* node = parentNode(); node; node = node->parentNode()) {
- if (node->isInsertionPoint()) {
- // For HTMLContentElement, at most one HTMLShadowElement may appear in its ancestors.
- if (thisIsContentHTMLElement && node->hasTagName(shadowTag) && !foundShadowElementInAncestors)
- foundShadowElementInAncestors = true;
- else
- return false;
- }
+ if (node->isInsertionPoint())
+ return false;
}
return true;
}
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698