| Index: Source/core/editing/VisibleSelection.cpp
|
| diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp
|
| index 457599ab18c25c7db70979605ef9d6a4bffcda77..59339545d0fffba9c8364456f7885d74c2857eed 100644
|
| --- a/Source/core/editing/VisibleSelection.cpp
|
| +++ b/Source/core/editing/VisibleSelection.cpp
|
| @@ -752,7 +752,7 @@ Element* VisibleSelection::rootEditableElement() const
|
|
|
| Node* VisibleSelection::nonBoundaryShadowTreeRootNode() const
|
| {
|
| - return start().deprecatedNode() ? start().deprecatedNode()->nonBoundaryShadowTreeRootNode() : 0;
|
| + return start().deprecatedNode() && !start().deprecatedNode()->isShadowRoot() ? start().deprecatedNode()->nonBoundaryShadowTreeRootNode() : 0;
|
| }
|
|
|
| VisibleSelection::ChangeObserver::ChangeObserver()
|
|
|