Index: Source/core/dom/shadow/InsertionPoint.cpp |
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp |
index 9bb7c0c225ed53fd006ed29b17ae1f54c210c348..fb1029415a385788b478bfd5a132380aac8fae29 100644 |
--- a/Source/core/dom/shadow/InsertionPoint.cpp |
+++ b/Source/core/dom/shadow/InsertionPoint.cpp |
@@ -135,11 +135,7 @@ bool InsertionPoint::canBeActive() const |
{ |
if (!isInShadowTree()) |
return false; |
- for (Node* node = parentNode(); node; node = node->parentNode()) { |
- if (node->isInsertionPoint()) |
- return false; |
- } |
- return true; |
+ return !Traversal<InsertionPoint>::firstAncestor(*this); |
} |
bool InsertionPoint::isActive() const |