| Index: Source/core/dom/shadow/InsertionPoint.cpp
|
| diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
|
| index eadd316ca3b3d3ae86ef790b1d3f0353f2dcb310..a3ee335ebdc4d5e17a59d2b945c22f4f95a52bde 100644
|
| --- a/Source/core/dom/shadow/InsertionPoint.cpp
|
| +++ b/Source/core/dom/shadow/InsertionPoint.cpp
|
| @@ -143,12 +143,11 @@
|
|
|
| bool InsertionPoint::isActive() const
|
| {
|
| - if (!inDocument())
|
| - return false;
|
| if (!canBeActive())
|
| return false;
|
| ShadowRoot* shadowRoot = containingShadowRoot();
|
| - ASSERT(shadowRoot);
|
| + if (!shadowRoot)
|
| + return false;
|
| if (!hasTagName(shadowTag) || shadowRoot->descendantShadowElementCount() <= 1)
|
| return true;
|
|
|
|
|