| Index: Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp
|
| index fef89c21ad97ab4f817f397d6902b7653c75adad..54bb81bc3a4ace517d1b894c359f65c5fce9d575 100644
|
| --- a/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -984,6 +984,9 @@ static Node* nextNodeWithShadowDOMInMind(const Node& current, const Node* stayWi
|
| const ShadowRoot* shadowRoot = toShadowRoot(node);
|
| if (shadowRoot->olderShadowRoot())
|
| return shadowRoot->olderShadowRoot();
|
| + Node* host = shadowRoot->host();
|
| + if (host && host->hasChildren())
|
| + return host->firstChild();
|
| }
|
| if (node->nextSibling())
|
| return node->nextSibling();
|
|
|